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:
commit
242cd4cbea
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue