diff options
author | LawnCable <git@lawncable.net> | 2021-03-01 03:32:29 +0100 |
---|---|---|
committer | LawnCable <git@lawncable.net> | 2021-03-01 03:32:29 +0100 |
commit | 2ac20473ce59620f8348f4e5abe2141e6cc41b34 (patch) | |
tree | 693cadecbff5eca6b082daf6818412de8b27e361 | |
parent | 1ece0228b13809e0ea3879bba0525e271a2b9586 (diff) | |
download | electron-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.ts | 3 |
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( |