1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Add missing workshop plugin path for mac

This commit is contained in:
Elias Steurer 2021-08-14 12:46:19 +02:00
parent fe0ab29cf8
commit 3e837e8a70

View File

@ -195,6 +195,11 @@ void App::init()
}
qmlRegisterSingletonInstance("ScreenPlay", 1, 0, "ScreenPlay", this);
#ifdef Q_OS_MACOS
// Needed for macos .app files
m_mainWindowEngine->addPluginPath(QGuiApplication::instance()->applicationDirPath());
#endif
m_mainWindowEngine->load(QUrl(QStringLiteral("qrc:/main.qml")));
// Must be called last to display a error message on startup by the qml engine