Skip to content

Commit

Permalink
appIconsDecorator: Keep showing the details items when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Sep 23, 2024
1 parent 1e3f08d commit 7f56667
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions appIconsDecorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,14 @@ export class AppIconsDecorator {
if (this.isEmpty())
return;

// Temporarily hide all the menu items a part the Pinning one
// while we're updating.
// Temporarily hide all the menu items a part the Pinning and
// the details one while we're updating.
const validItems = [
this._toggleFavoriteItem,
this._detailsItem,
];
const items = this._getMenuItems().filter(
i => i !== this._toggleFavoriteItem).map(i =>
i => !validItems.includes(i)).map(i =>
i instanceof PopupMenu.PopupMenuBase ? i.actor : i);
const itemsVisibility = items.map(i => i.visible);
items.forEach(i => (i.visible = false));
Expand Down

0 comments on commit 7f56667

Please sign in to comment.