diff --git a/src/core/controller.cpp b/src/core/controller.cpp index 9f05beab..1e5c16c0 100644 --- a/src/core/controller.cpp +++ b/src/core/controller.cpp @@ -104,7 +104,10 @@ Controller::Controller() qApp, [&]() { this->showRecentScreenshots(); }); #endif - getLatestAvailableVersion(); + + if (ConfigHandler().checkForUpdates()) { + getLatestAvailableVersion(); + } } Controller::~Controller() @@ -215,14 +218,11 @@ void Controller::handleReplyCheckUpdates(QNetworkReply* reply) void Controller::appUpdates() { - if (ConfigHandler().checkForUpdates()) { - - if (m_appLatestUrl.isEmpty()) { - m_showCheckAppUpdateStatus = true; - getLatestAvailableVersion(); - } else { - QDesktopServices::openUrl(QUrl(m_appLatestUrl)); - } + if (m_appLatestUrl.isEmpty()) { + m_showCheckAppUpdateStatus = true; + getLatestAvailableVersion(); + } else { + QDesktopServices::openUrl(QUrl(m_appLatestUrl)); } }