summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawnCable <git@lawncable.net>2021-03-01 03:32:29 +0100
committerLawnCable <git@lawncable.net>2021-03-01 03:32:29 +0100
commit2ac20473ce59620f8348f4e5abe2141e6cc41b34 (patch)
tree693cadecbff5eca6b082daf6818412de8b27e361
parent1ece0228b13809e0ea3879bba0525e271a2b9586 (diff)
downloadelectron-2ac20473ce59620f8348f4e5abe2141e6cc41b34.tar.gz
electron-2ac20473ce59620f8348f4e5abe2141e6cc41b34.tar.bz2
electron-2ac20473ce59620f8348f4e5abe2141e6cc41b34.tar.xz
electron-2ac20473ce59620f8348f4e5abe2141e6cc41b34.zip
fix update dialog is shown even if version is the current one
-rw-r--r--src/main/manaplus/manaplus.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/manaplus/manaplus.ts b/src/main/manaplus/manaplus.ts
index 08ea0fc..ebfb7b8 100644
--- a/src/main/manaplus/manaplus.ts
+++ b/src/main/manaplus/manaplus.ts
@@ -68,8 +68,9 @@ export namespace ManaPlus {
// Check if update is available and ask if the user wants to update
try {
let version = await ManaPlusInstance.updateAvailable();
+ // console.log({version})
willUpdate =
- version.isNewVersion && (await updateDialog(version.newestVersion));
+ !version.isNewVersion && (await updateDialog(version.newestVersion));
} catch (e) {
console.log(e);
Status.showError(