From 26433c2cb7d6c394844c5570b5eddbc8dbb4805c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 13 Jun 2017 04:17:39 +0200 Subject: [PATCH] remoteMenu: Add actionGroup accessor To avoid recreating the app menu unnecessarily, the panel checks whether the menu's current actionGroup already matches the target one. However as the menu's actionGroup property is currently private, the test always fails, whoops. https://bugzilla.gnome.org/show_bug.cgi?id=781471 --- js/ui/remoteMenu.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js index 7d7ebbf89..4aee3d7b1 100644 --- a/js/ui/remoteMenu.js +++ b/js/ui/remoteMenu.js @@ -192,6 +192,10 @@ const RemoteMenu = new Lang.Class({ _removeItem.bind(null, this)); }, + get actionGroup() { + return this._actionGroup; + }, + destroy: function() { this._tracker.destroy(); this.parent();