From e5c8078eaffca1a407a912e53027642d54ec3d9e Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Mon, 18 Mar 2019 10:26:58 -0700 Subject: [PATCH] Ignore hidden version while checking update from menu --- src/rpc.cpp | 7 +++---- src/version.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index a1bb293..9373000 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -87,9 +87,8 @@ void RPC::setConnection(Connection* c) { ui->statusBar->showMessage("Ready!"); - refreshZECPrice(); - // Commented for Android beta. - // checkForUpdate(); + refreshZECPrice(); + checkForUpdate(); // Force update, because this might be coming from a settings update // where we need to immediately refresh @@ -996,7 +995,7 @@ void RPC::checkForUpdate(bool silent) { qDebug() << "Version check: Current " << currentVersion << ", Available " << maxVersion; - if (maxVersion > currentVersion && maxVersion > maxHiddenVersion) { + if (maxVersion > currentVersion && (!silent || maxVersion > maxHiddenVersion)) { auto ans = QMessageBox::information(main, QObject::tr("Update Available"), QObject::tr("A new release v%1 is available! You have v%2.\n\nWould you like to visit the releases page?") .arg(maxVersion.toString()) diff --git a/src/version.h b/src/version.h index 0c11a4d..238bc5d 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define APP_VERSION "0.6.1" +#define APP_VERSION "0.6.2"