aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-09 17:53:33 +0200
committer0neGal <mail@0negal.com>2024-06-09 17:53:33 +0200
commit95bfbd4f2f822d85429b31f9d0e575c1980eab9d (patch)
tree76d4375aafe1576a1d79677b5d85de43073c2de8
parent6b3048fc7c051b8e5734e02af166edfbadd8af0b (diff)
downloadViper-95bfbd4f2f822d85429b31f9d0e575c1980eab9d.tar.gz
Viper-95bfbd4f2f822d85429b31f9d0e575c1980eab9d.zip
fixed version numbers not updating after update
Technically this is also broken on the main branch, however it's a lot easier to just fix here, instead of having to fix it there, then also fix it here, due to the modularization
-rw-r--r--src/app/js/update.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/js/update.js b/src/app/js/update.js
index 034f3e8..6aa1b6d 100644
--- a/src/app/js/update.js
+++ b/src/app/js/update.js
@@ -60,6 +60,9 @@ ipcRenderer.on("ns-update-event", (event, options) => {
delay = 500 - (now - update.ns.last_checked);
}
+ // request up-to-date version numbers
+ ipcRenderer.send("get-version");
+
// wait `delay`ms
setTimeout(() => {
// set buttons accordingly