summaryrefslogtreecommitdiff
path: root/src/update/UpdateActivity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/update/UpdateActivity.cpp')
-rw-r--r--src/update/UpdateActivity.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/update/UpdateActivity.cpp b/src/update/UpdateActivity.cpp
index 1f07373..0f22df7 100644
--- a/src/update/UpdateActivity.cpp
+++ b/src/update/UpdateActivity.cpp
@@ -105,13 +105,16 @@ private:
notifyStatus("Applying update");
notifyProgress(-1);
+ Client::Ref().SetPref("version.update", true);
+ Client::Ref().WritePrefs();
if (update_start(res, uncompressedLength))
{
+ Client::Ref().SetPref("version.update", false);
update_cleanup();
notifyError("Update failed - try downloading a new version.");
+ return false;
}
- Client::Ref().SetPref("version.update", true);
return true;
corrupt: