From b3aa917bb067c6e627da3a8e9bc2fcb799a7b612 Mon Sep 17 00:00:00 2001 From: Jeremy Borgman Date: Mon, 15 Mar 2021 11:42:18 -0500 Subject: [PATCH] Dont query github api if check for updates is disabled --- src/core/controller.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/core/controller.cpp b/src/core/controller.cpp index d6de6897..9f05beab 100644 --- a/src/core/controller.cpp +++ b/src/core/controller.cpp @@ -215,11 +215,14 @@ void Controller::handleReplyCheckUpdates(QNetworkReply* reply) void Controller::appUpdates() { - if (m_appLatestUrl.isEmpty()) { - m_showCheckAppUpdateStatus = true; - getLatestAvailableVersion(); - } else { - QDesktopServices::openUrl(QUrl(m_appLatestUrl)); + if (ConfigHandler().checkForUpdates()) { + + if (m_appLatestUrl.isEmpty()) { + m_showCheckAppUpdateStatus = true; + getLatestAvailableVersion(); + } else { + QDesktopServices::openUrl(QUrl(m_appLatestUrl)); + } } }