mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Merge pull request #3194
9b18344d
main: don't override user-provided QT_QPA_PLATFORM env variable (xiphon)
This commit is contained in:
commit
7f164e739a
1 changed files with 2 additions and 2 deletions
|
@ -177,8 +177,8 @@ int main(int argc, char *argv[])
|
||||||
// disable "QApplication: invalid style override passed" warning
|
// disable "QApplication: invalid style override passed" warning
|
||||||
if (isDesktop) qputenv("QT_STYLE_OVERRIDE", "fusion");
|
if (isDesktop) qputenv("QT_STYLE_OVERRIDE", "fusion");
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
// force platform xcb
|
// platform xcb by default
|
||||||
if (isDesktop) qputenv("QT_QPA_PLATFORM", "xcb");
|
if (isDesktop && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) qputenv("QT_QPA_PLATFORM", "xcb");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// enable High DPI scaling
|
// enable High DPI scaling
|
||||||
|
|
Loading…
Reference in a new issue