From 2ac20473ce59620f8348f4e5abe2141e6cc41b34 Mon Sep 17 00:00:00 2001 From: LawnCable Date: Mon, 1 Mar 2021 03:32:29 +0100 Subject: fix update dialog is shown even if version is the current one --- src/main/manaplus/manaplus.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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( -- cgit v1.2.3-60-g2f50