mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Merge pull request #8458 from luis-pereira/qgetenv
Use qEnvironmentVariableIsEmpty
This commit is contained in:
commit
6244ad5fa8
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ void showSplashScreen()
|
||||||
#if defined(Q_OS_UNIX)
|
#if defined(Q_OS_UNIX)
|
||||||
void setupDpi()
|
void setupDpi()
|
||||||
{
|
{
|
||||||
if (qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty())
|
if (qEnvironmentVariableIsEmpty("QT_AUTO_SCREEN_SCALE_FACTOR"))
|
||||||
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
|
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
|
||||||
}
|
}
|
||||||
#endif // Q_OS_UNIX
|
#endif // Q_OS_UNIX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue