Skip to content

Commit

Permalink
Update trick.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander authored and tobiasKaminsky committed Dec 11, 2023
1 parent 2e210db commit 556c779
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/updater/ocupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,13 @@ bool NSISUpdater::handleStartup()
ConfigFile cfg;
QSettings settings(cfg.configFile(), QSettings::IniFormat);
QString updateFileName = settings.value(updateAvailableC).toString();

QString updateTargetVersion = settings.value(updateTargetVersionC).toString();
if (updateTargetVersion.startsWith("4.") && clientVersion().startsWith("3.1")) {
wipeUpdateData();
return false;
}

// has the previous run downloaded an update?
if (!updateFileName.isEmpty() && QFile(updateFileName).exists()) {
qCInfo(lcUpdater) << "An updater file is available";
Expand Down

0 comments on commit 556c779

Please sign in to comment.