mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Config: Port AutoUpdate settings to new config system.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user