Updater: Fix manual update check when autoupdate is disabled

This commit is contained in:
Dentomologist 2022-04-02 11:52:51 -07:00
parent 113fdc959d
commit c8d953d0c6
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())