[gnome-shell-extensions] drive-menu: Fix indicator visibility
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] drive-menu: Fix indicator visibility
- Date: Wed, 14 Jul 2021 10:43:56 +0000 (UTC)
commit 3539ce113907ffda813e1a990891b0911c9702ef
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 13 11:40:31 2021 +0200
drive-menu: Fix indicator visibility
Commit 519269be9d made the check for network mounts non-blocking, and
we now update the indicator's visibility before a newly-added network
mount is hidden.
Address this by monitoring the item itself for visibility changes.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/176>
extensions/drive-menu/extension.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 3fac236..6c6fd76 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -189,6 +189,8 @@ class DriveMenu extends PanelMenu.Button {
let item = new MountMenuItem(mount);
this._mounts.unshift(item);
this.menu.addMenuItem(item, 0);
+
+ item.connect('notify::visible', () => this._updateMenuVisibility());
}
_removeMount(mount) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]