From 09ed1fbcefe6bcc948ec1cb94c5e4343aa5a11ba Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 15 Mar 2023 08:02:32 +0800 Subject: [PATCH] #294 show version of next gui update --- modules/desktop/electron/electron.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/desktop/electron/electron.ts b/modules/desktop/electron/electron.ts index 5b700cf..d0a32a9 100644 --- a/modules/desktop/electron/electron.ts +++ b/modules/desktop/electron/electron.ts @@ -105,7 +105,8 @@ autoUpdater.on("update-available", (info) => { sendStatusToWindow( `A new tea gui(${info.version}) is being downloaded. Please don't close the app.`, { - i18n_key: "notification.gui-downloading" + i18n_key: "notification.gui-downloading", + version: info.version, } ); }); @@ -124,6 +125,7 @@ autoUpdater.on("download-progress", (progressObj) => { autoUpdater.on("update-downloaded", (info) => { sendStatusToWindow(`A new tea gui(${info.version}) is available. Relaunch the app to update.`, { i18n_key: "notification.gui-downloaded", + version: info.version, action: "relaunch" }); });