Auto check for updates when opening updates page

If page is empty
This commit is contained in:
Gres 2021-04-13 20:55:47 +03:00
parent 413cae80c4
commit 3f2dcbbeb0

View File

@ -287,6 +287,11 @@ void SettingsEditor::setSettings(const Settings &settings)
void SettingsEditor::updateCurrentPage() void SettingsEditor::updateCurrentPage()
{ {
ui->pagesView->setCurrentIndex(ui->pagesList->currentIndex().row()); ui->pagesView->setCurrentIndex(ui->pagesList->currentIndex().row());
if (ui->pagesView->currentWidget() != ui->pageUpdate)
return;
if (ui->updatesView->model()->rowCount() == 0)
updater_.checkForUpdates();
} }
void SettingsEditor::updateTranslators() void SettingsEditor::updateTranslators()