Skip to content

A local-first personal finance app

:bug: dismiss update notification only after clicking close (#854)

Matiss Janis Aboltins61f1802840c3
diff --git a/packages/loot-core/src/client/update-notification.js b/packages/loot-core/src/client/update-notification.js
index d30291eecf..55d9b77c2c 100644
--- a/packages/loot-core/src/client/update-notification.js
+++ b/packages/loot-core/src/client/update-notification.js
@@ -15,9 +15,6 @@ export default async function checkForUpdateNotification(
return;
}
- await savePrefs({
- 'flags.updateNotificationShownForVersion': latestVersion,
- });
addNotification({
type: 'message',
title: 'A new version of Actual is available!',
@@ -30,5 +27,10 @@ export default async function checkForUpdateNotification(
window.open('https://actualbudget.github.io/docs/Release-Notes');
},
},
+ onClose: async () => {
+ await savePrefs({
+ 'flags.updateNotificationShownForVersion': latestVersion,
+ });
+ },
});
}
diff --git a/upcoming-release-notes/854.md b/upcoming-release-notes/854.md
new file mode 100644
index 0000000000..6a3b861de9
--- /dev/null
+++ b/upcoming-release-notes/854.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Dismiss the update notification only after clicking the close button