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

Merge branch '161-refactor-screenplaywallpaper-to-no-longer-inherit-from-basewindow' of https://gitlab.com/kelteseth/ScreenPlay into 161-refactor-screenplaywallpaper-to-no-longer-inherit-from-basewindow

This commit is contained in:
Elias Steurer 2023-01-27 09:01:44 +01:00
commit 8e72488f62

View File

@ -8,6 +8,10 @@ ScreenPlay::WallpaperExitCode MacWindow::start()
m_window.setGeometry(screen->geometry());
qmlRegisterSingletonInstance<MacWindow>("ScreenPlayWallpaper", 1, 0, "Wallpaper", this);
if(!debugMode()){
connect(m_sdk.get(), &ScreenPlaySDK::sdkDisconnected, this, &MacWindow::destroyThis);
}
QDir workingDir(QGuiApplication::instance()->applicationDirPath());
workingDir.cdUp();