[gnome-shell] panel: Remove a dead check



commit 04bf75d137991dff8c6cb67ea4eee743b8bdb369
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Dec 10 03:40:30 2012 -0500

    panel: Remove a dead check
    
    With the dummy menu item now in place, we will always have a menu.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689954

 js/ui/panel.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 712abd7..64a6d43 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -599,7 +599,7 @@ const AppMenuButton = new Lang.Class({
 
             menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group);
         } else {
-            if (this.menu && this.menu.isDummyQuitMenu)
+            if (this.menu.isDummyQuitMenu)
                 return;
 
             // fallback to older menu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]