Keep legacy defaults for existing users

This commit is contained in:
Vladimir Golovnev (Glassez)
2020-01-09 14:35:25 +03:00
parent 86c95db91d
commit 0c6c65f6f8
3 changed files with 33 additions and 0 deletions

View File

@@ -237,6 +237,8 @@ int main(int argc, char *argv[])
#endif
if (!firstTimeUser) {
handleChangedDefaults(DefaultPreferencesMode::Legacy);
#ifndef DISABLE_GUI
if (!upgrade()) return EXIT_FAILURE;
#elif defined(Q_OS_WIN)
@@ -248,6 +250,10 @@ int main(int argc, char *argv[])
&& isatty(fileno(stdout)))) return EXIT_FAILURE;
#endif
}
else {
handleChangedDefaults(DefaultPreferencesMode::Current);
}
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN)
if (params.shouldDaemonize) {
app.reset(); // Destroy current application