Skip to content

Commit

Permalink
Fixed an issue where the updates module wouldn't update visibility wh…
Browse files Browse the repository at this point in the history
…en auto-hide was toggled. (#612)
  • Loading branch information
Jas-SinghFSU authored Dec 24, 2024
1 parent e0917ff commit e7d9235
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/bar/modules/updates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const updatesPoller = new BashPoller<string, []>(

updatesPoller.initialize('updates');

Variable.derive([bind(autoHide)], (autoHideModule) => {
isVis.set(!autoHideModule || (autoHideModule && parseFloat(pendingUpdates.get()) > 0));
});

const updatesIcon = Variable.derive(
[bind(icon.pending), bind(icon.updated), bind(pendingUpdates)],
(pendingIcon, updatedIcon, pUpdates) => {
Expand Down

0 comments on commit e7d9235

Please sign in to comment.