From 7f5666784d5458c8a2f64e18509592f2fb7957f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 16 Sep 2024 23:35:16 +0200 Subject: [PATCH] appIconsDecorator: Keep showing the details items when updating --- appIconsDecorator.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appIconsDecorator.js b/appIconsDecorator.js index 96cb64769..3746ded57 100644 --- a/appIconsDecorator.js +++ b/appIconsDecorator.js @@ -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));