Dont query github api if check for updates is disabled

This commit is contained in:
Jeremy Borgman
2021-03-15 11:42:18 -05:00
committed by borgmanJeremy
parent 8743132ede
commit b3aa917bb0

View File

@@ -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));
}
}
}