diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-08 17:10:42 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-08 17:10:42 +0300 |
commit | 72333aec59b5e85c3194277fa29d5123a4b40694 (patch) | |
tree | ed907f09e146cb08a97573ec840aa678850b513b /src/main.cpp | |
parent | Show sidebar after initial sync (diff) | |
download | nheko-72333aec59b5e85c3194277fa29d5123a4b40694.tar.xz |
Enable Qt auto scaling
fixes #397
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b71aa627..77e62381 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -109,6 +109,9 @@ main(int argc, char *argv[]) if (factor != -1) qputenv("QT_SCALE_FACTOR", QString::number(factor).toUtf8()); + + if (factor == -1 || factor == 1) + qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); } #endif |