delay initial update check and by default turn off

This commit is contained in:
Martin Rotter 2024-03-25 10:45:12 +01:00
parent 67c17ab128
commit 31fc63e422
3 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
m_notifications->load(settings());
}
QTimer::singleShot(1000, system(), &SystemFactory::checkForUpdatesOnStartup);
QTimer::singleShot(15000, system(), &SystemFactory::checkForUpdatesOnStartup);
setupWorkHorsePool();

View File

@ -398,7 +398,7 @@ DVALUE(char*) GUI::StyleDef = APP_STYLE_DEFAULT;
DKEY General::ID = "main";
DKEY General::UpdateOnStartup = "update_on_start";
DVALUE(bool) General::UpdateOnStartupDef = true;
DVALUE(bool) General::UpdateOnStartupDef = false;
DKEY General::FirstRun = "first_run";
DVALUE(bool) General::FirstRunDef = true;

View File

@ -272,7 +272,7 @@ void SystemFactory::checkForUpdatesOnStartup() {
}});
}
});
qApp->system()->checkForUpdates();
checkForUpdates();
}
#endif
}