Skip to content

Commit

Permalink
fix - ignore available updates by "less" instead of "not equal"
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Puchkov committed Dec 18, 2020
1 parent 2114ad3 commit 6576f0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ void Controller::handleReplyCheckUpdates(QNetworkReply* reply)
QJsonDocument response = QJsonDocument::fromJson(reply->readAll());
QJsonObject json = response.object();
m_appLatestVersion = json["tag_name"].toString().replace("v", "");
m_appLatestVersion = "0.8.5.7";
if (QStringLiteral(APP_VERSION)
.replace("v", "")
.compare(m_appLatestVersion) < 0) {
Expand Down Expand Up @@ -269,8 +268,8 @@ void Controller::startVisualCapture(const uint id,
m_captureWindow->showFullScreen();
#endif
if (!m_appLatestUrl.isEmpty() &&
0 != m_appLatestVersion.compare(
ConfigHandler().ignoreUpdateToVersion())) {
ConfigHandler().ignoreUpdateToVersion().compare(
m_appLatestVersion) < 0) {
m_captureWindow->showAppUpdateNotification(m_appLatestVersion,
m_appLatestUrl);
}
Expand Down

0 comments on commit 6576f0a

Please sign in to comment.