Merge pull request #10555 from Dentomologist/fix_manual_update_check_when_autoupdate_disabled

Updater: Fix manual update check when autoupdate is disabled
This commit is contained in:
Admiral H. Curtiss 2022-04-06 14:38:25 +02:00 committed by GitHub
commit 242cd4cbea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -556,8 +556,9 @@ void MenuBar::AddOptionsMenu()
void MenuBar::InstallUpdateManually()
{
auto* updater =
new Updater(this->parentWidget(), Config::Get(Config::MAIN_AUTOUPDATE_UPDATE_TRACK),
const std::string autoupdate_track = Config::Get(Config::MAIN_AUTOUPDATE_UPDATE_TRACK);
const std::string manual_track = autoupdate_track.empty() ? "dev" : autoupdate_track;
auto* const updater = new Updater(this->parentWidget(), manual_track,
Config::Get(Config::MAIN_AUTOUPDATE_HASH_OVERRIDE));
if (!updater->CheckForUpdate())