Updater: Fix manual update check when autoupdate is disabled
This commit is contained in:
parent
113fdc959d
commit
c8d953d0c6
|
@ -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