mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-04 01:28:07 +00:00
Dont query github api if check for updates is disabled
This commit is contained in:
committed by
borgmanJeremy
parent
8743132ede
commit
b3aa917bb0
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user