Config: Port AutoUpdate settings to new config system.

This commit is contained in:
Admiral H. Curtiss
2021-12-27 19:09:47 +01:00
parent 8d237eb102
commit 96fa0919be
13 changed files with 44 additions and 52 deletions

View File

@ -548,12 +548,8 @@ void MenuBar::AddOptionsMenu()
void MenuBar::InstallUpdateManually()
{
auto& track = SConfig::GetInstance().m_auto_update_track;
auto previous_value = track;
track = "dev";
auto* updater = new Updater(this->parentWidget());
auto* updater =
new Updater(this->parentWidget(), "dev", Config::Get(Config::MAIN_AUTOUPDATE_HASH_OVERRIDE));
if (!updater->CheckForUpdate())
{
@ -561,8 +557,6 @@ void MenuBar::InstallUpdateManually()
this, tr("Update"),
tr("You are running the latest version available on this update track."));
}
track = previous_value;
}
void MenuBar::AddHelpMenu()