Skip to content

Commit

Permalink
delay initial update check and by default turn off
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Mar 25, 2024
1 parent 67c17ab commit 31fc63e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librssguard/miscellaneous/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/miscellaneous/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/miscellaneous/systemfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void SystemFactory::checkForUpdatesOnStartup() {
}});
}
});
qApp->system()->checkForUpdates();
checkForUpdates();
}
#endif
}
Expand Down

0 comments on commit 31fc63e

Please sign in to comment.