forked from Public/monero-gui
main: don't override user-provided QT_QPA_PLATFORM env variable
This commit is contained in:
@@ -179,8 +179,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
|
||||||
|
|||||||
Reference in New Issue
Block a user