[gnome-shell] appWellMenu: Show the "new window" item for non running apps



commit 7ddf54c4d33672b381467f0000cfd9770241cc62
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Feb 25 15:43:43 2011 +0100

    appWellMenu: Show the "new window" item for non running apps
    
    There is no reason to not display it, and from a user's point of view the
    distinction is confusing.

 js/ui/appDisplay.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a2286d0..91a3915 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -548,10 +548,9 @@ AppIconMenu.prototype = {
 
         let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
 
-        this._newWindowMenuItem = windows.length > 0 ? this._appendMenuItem(_("New Window")) : null;
+        this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
+        this._appendSeparator();
 
-        if (windows.length > 0)
-            this._appendSeparator();
         this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites")
                                                                     : _("Add to Favorites"));
 



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