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:
parent
fe0ab29cf8
commit
3e837e8a70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user