summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-08 17:10:42 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-08 17:10:42 +0300
commit72333aec59b5e85c3194277fa29d5123a4b40694 (patch)
treeed907f09e146cb08a97573ec840aa678850b513b /src
parentShow sidebar after initial sync (diff)
downloadnheko-72333aec59b5e85c3194277fa29d5123a4b40694.tar.xz
Enable Qt auto scaling
fixes #397
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
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