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" }); });