1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 16:32:33 +02:00

Fix macOS crash when using windows env vars

This commit is contained in:
Elias Steurer 2022-11-05 15:00:53 +01:00
parent 712e8113f0
commit 51ab622ada

View File

@ -49,10 +49,12 @@ Q_IMPORT_QML_PLUGIN(ScreenPlayWorkshopPlugin)
int main(int argc, char* argv[])
{
// https://bugreports.qt.io/browse/QTBUG-72028
qputenv("QT_QPA_PLATFORM", "windows:darkmode=2");
QApplication qtGuiApp(argc, argv);
#if defined(Q_OS_WIN)
// https://bugreports.qt.io/browse/QTBUG-72028
qputenv("QT_QPA_PLATFORM", "windows:darkmode=2");
#endif
QApplication qtGuiApp(argc, argv);
ScreenPlay::App app;
if (app.m_isAnotherScreenPlayInstanceRunning) {