appDisplay: Fall back to app name in icon menu
The app icon's context menu contains a list of open windows, identified by their title. As we currently don't handle the case where the app didn't set a title, we end up with empty menu items which looks clearly broken. Fall back to the app's name in that case. https://gitlab.gnome.org/GNOME/gnome-shell/issues/26
This commit is contained in:
parent
44894262f4
commit
f0557ea05c
@ -1870,7 +1870,9 @@ var AppIconMenu = new Lang.Class({
|
|||||||
this._appendSeparator();
|
this._appendSeparator();
|
||||||
separatorShown = true;
|
separatorShown = true;
|
||||||
}
|
}
|
||||||
let item = this._appendMenuItem(window.title);
|
let title = window.title ? window.title
|
||||||
|
: this._source.app.get_name();
|
||||||
|
let item = this._appendMenuItem(title);
|
||||||
item.connect('activate', () => {
|
item.connect('activate', () => {
|
||||||
this.emit('activate-window', window);
|
this.emit('activate-window', window);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user