appDisplay: Don't expose "Add as favorite" for window-backed apps
We don't know how to do it. Similarly, don't allow New Window. https://bugzilla.gnome.org/show_bug.cgi?id=648149
This commit is contained in:
parent
b9edb1dc01
commit
7f1d2825fd
@ -673,17 +673,18 @@ AppIconMenu.prototype = {
|
|||||||
item._window = windows[i];
|
item._window = windows[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (windows.length > 0)
|
if (!this._source.app.is_window_backed()) {
|
||||||
|
if (windows.length > 0)
|
||||||
|
this._appendSeparator();
|
||||||
|
|
||||||
|
let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
|
||||||
|
|
||||||
|
this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
|
||||||
this._appendSeparator();
|
this._appendSeparator();
|
||||||
|
|
||||||
let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
|
this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites")
|
||||||
|
: _("Add to Favorites"));
|
||||||
this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
|
}
|
||||||
this._appendSeparator();
|
|
||||||
|
|
||||||
this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites")
|
|
||||||
: _("Add to Favorites"));
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_appendSeparator: function () {
|
_appendSeparator: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user