mirror of https://github.com/KDE/kasts.git
Fix app silently closing when minimized to tray
This commit is contained in:
parent
a39278706f
commit
749eb17c56
|
@ -170,6 +170,9 @@ int main(int argc, char *argv[])
|
|||
qRegisterMetaType<Feed *>("const Feed*"); // "hack" to make qml understand Feed*
|
||||
qRegisterMetaType<QVector<SyncUtils::Device>>("QVector<SyncUtils::Device>"); // "hack" to make qml understand QVector of SyncUtils::Device
|
||||
|
||||
// Workaround to don't get the app to silently quit when minimized to tray
|
||||
app.setQuitLockEnabled(false);
|
||||
|
||||
// Make sure that settings are saved before the application exits
|
||||
QObject::connect(&app, &QCoreApplication::aboutToQuit, SettingsManager::self(), &SettingsManager::save);
|
||||
|
||||
|
|
Loading…
Reference in New Issue