mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
Linux: fix Qt scaling factor
This commit is contained in:
parent
363a4c5779
commit
6754dd3370
1 changed files with 6 additions and 5 deletions
11
src/main.cpp
11
src/main.cpp
|
@ -37,11 +37,6 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
|||
}
|
||||
#endif
|
||||
|
||||
// Disable High DPI scaling on Linux for now
|
||||
#if defined(Q_OS_LINUX)
|
||||
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
|
||||
#endif
|
||||
|
||||
QStringList argv_;
|
||||
for(int i = 0; i != argc; i++){
|
||||
argv_ << QString::fromStdString(argv[i]);
|
||||
|
@ -96,11 +91,17 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
|||
QApplication::setDesktopSettingsAware(true); // use system font
|
||||
QApplication::setApplicationVersion(FEATHER_VERSION);
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
// PassThrough results in muddy text
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||
#endif
|
||||
|
||||
SingleApplication app(argc, argv);
|
||||
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
QApplication::setApplicationName("FeatherWallet");
|
||||
|
||||
|
||||
// Setup config directories
|
||||
QString configDir = Config::defaultConfigDir().path();
|
||||
QString config_dir_tor = QString("%1/%2").arg(configDir, "tor");
|
||||
|
|
Loading…
Reference in a new issue