#294 show version of next gui update

This commit is contained in:
neil 2023-03-15 08:02:32 +08:00
parent 4b993ae268
commit 09ed1fbcef

View file

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