diff --git a/apps/renderer/src/initialize/migrates/index.ts b/apps/renderer/src/initialize/migrates/index.ts index 7a6186059..a53756bbd 100644 --- a/apps/renderer/src/initialize/migrates/index.ts +++ b/apps/renderer/src/initialize/migrates/index.ts @@ -20,7 +20,10 @@ export const doMigration = async () => { } // NOTE: Add migration logic here + if (!APP_VERSION.includes("nightly")) { + window.__app_is_upgraded__ = true + } appLog(`Upgrade from ${lastVersion} to ${APP_VERSION}`) - window.__app_is_upgraded__ = true + localStorage.setItem(appVersionKey, APP_VERSION) } diff --git a/apps/renderer/src/modules/upgrade/container.tsx b/apps/renderer/src/modules/upgrade/container.tsx index 0dc374109..d1c256699 100644 --- a/apps/renderer/src/modules/upgrade/container.tsx +++ b/apps/renderer/src/modules/upgrade/container.tsx @@ -66,7 +66,8 @@ const AppNotificationContainer: FC = () => { , enjoy the new features! 🎉 , { - duration: 10e8, + closeButton: true, + duration: 5000, action: CHANGELOG_CONTENT ? { label: "What's new?",