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.
This commit is contained in:
Adel Gadllah 2011-02-25 15:43:43 +01:00
parent cc72819579
commit 7ddf54c4d3

View File

@ -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;
if (windows.length > 0)
this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
this._appendSeparator();
this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites")
: _("Add to Favorites"));