mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-05 08:35:00 +00:00
fix - update version notification logic
This commit is contained in:
@@ -159,8 +159,9 @@ void Controller::handleReplyCheckUpdates(QNetworkReply* reply)
|
||||
QJsonDocument response = QJsonDocument::fromJson(reply->readAll());
|
||||
QJsonObject json = response.object();
|
||||
m_appLatestVersion = json["tag_name"].toString().replace("v", "");
|
||||
if (m_appLatestVersion.compare(
|
||||
QStringLiteral(APP_VERSION).replace("v", "")) < 0) {
|
||||
if (QStringLiteral(APP_VERSION)
|
||||
.replace("v", "")
|
||||
.compare(m_appLatestVersion) < 0) {
|
||||
m_appLatestUrl = json["html_url"].toString();
|
||||
QString newVersion =
|
||||
tr("New version %1 is available").arg(m_appLatestVersion);
|
||||
|
||||
Reference in New Issue
Block a user