We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c1bbd commit 41a1ff3Copy full SHA for 41a1ff3
src/hooks/updates.js
@@ -158,7 +158,7 @@ async function check(auto = true) {
158
eventManager.emit(':update:finished', auto);
159
}
160
161
- const updateFound = [...pendingUpdates.values()].find(({ announce = true }) => announce);
+ const updateFound = [...pendingUpdates.values()].filter(({ announce = true }) => announce).length;
162
if (updateFound) {
163
finish();
164
// TODO: translation
@@ -189,6 +189,11 @@ function setup() {
189
} else {
190
autoTimeout = setTimeout(check, timeout);
191
192
+
193
194
+ if (updateFound) {
195
+ notify('Updates available.', true);
196
+ }
197
198
199
function open() {
0 commit comments