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 aac7cca commit 66e239d
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 66e239d

Please sign in to comment.