Fix app silently closing when minimized to tray

This commit is contained in:
Bart De Vries 2023-12-04 13:42:38 +01:00
parent a39278706f
commit 749eb17c56
1 changed files with 3 additions and 0 deletions

View File

@ -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);