Skip to content

Commit 99a3df2

Browse files
committed
fix: toggle menu button when updates change
1 parent c0c7842 commit 99a3df2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hooks/updates.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,16 @@ async function check(auto = true) {
133133
autoTimeout = 0;
134134
}
135135

136+
const previousState = !pendingUpdates.size;
137+
136138
if (!disabled.value()) {
137139
await eventManager.async.emit(':update', auto);
138140
}
139141

142+
if (!pendingUpdates.size !== previousState) {
143+
menu.dirty();
144+
}
145+
140146
function finish() {
141147
toast?.close();
142148
eventManager.emit(':update:finished');

0 commit comments

Comments
 (0)