Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-09-26 20:19:35 +03:00
parent ebde563648
commit b8d9c3d779
12 changed files with 13 additions and 29 deletions

View File

@ -676,8 +676,7 @@ void MainWindow::repopulateAccountsMenu()
void MainWindow::updatesAllowedChanged(bool allowed)
{
if(!APPLICATION->updaterEnabled())
{
if (!APPLICATION->updaterEnabled()) {
return;
}
ui->actionCheckUpdate->setEnabled(allowed);
@ -1209,8 +1208,7 @@ void MainWindow::refreshInstances()
void MainWindow::checkForUpdates()
{
if(APPLICATION->updaterEnabled())
{
if (APPLICATION->updaterEnabled()) {
APPLICATION->triggerUpdateCheck();
} else {
qWarning() << "Updater not set up. Cannot check for updates.";