From ee0279326d234613918e2df8fd6efa044632676d Mon Sep 17 00:00:00 2001 From: Alexis Lopez Zubieta <contact@azubieta.net> Date: Sun, 15 Sep 2019 14:08:21 -0500 Subject: [PATCH] Add BACKUP postfix to the old file --- app/src/updaters/appupdater.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/updaters/appupdater.cpp b/app/src/updaters/appupdater.cpp index b373759..e6cf3a2 100644 --- a/app/src/updaters/appupdater.cpp +++ b/app/src/updaters/appupdater.cpp @@ -1,3 +1,4 @@ +#include <QFile> #include <QDebug> #include <QtConcurrent/QtConcurrent> @@ -115,6 +116,7 @@ void AppUpdater::checkUpdateProgress() case Updater::STOPPING: break; case Updater::SUCCESS: + QFile::rename(appImagePath, appImagePath + ".BACKUP"); updateDialog.showCompletionMessage(); progressCheckTimer.stop(); break; -- GitLab