windowMenu: Use consistent terminology
Because we don't have a dock or panel to minimize to, the `minimize` shortcut was renamed to `hide` a long time ago. Likewise, `unmaximize` appears as `restore` in keyboard shortcuts. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4088 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1834>
This commit is contained in:
parent
91280f7227
commit
a4d2f5d8b4
@ -24,14 +24,14 @@ var WindowMenu = class extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
let item;
|
let item;
|
||||||
|
|
||||||
item = this.addAction(_("Minimize"), () => {
|
item = this.addAction(_('Hide'), () => {
|
||||||
window.minimize();
|
window.minimize();
|
||||||
});
|
});
|
||||||
if (!window.can_minimize())
|
if (!window.can_minimize())
|
||||||
item.setSensitive(false);
|
item.setSensitive(false);
|
||||||
|
|
||||||
if (window.get_maximized()) {
|
if (window.get_maximized()) {
|
||||||
item = this.addAction(_("Unmaximize"), () => {
|
item = this.addAction(_('Restore'), () => {
|
||||||
window.unmaximize(Meta.MaximizeFlags.BOTH);
|
window.unmaximize(Meta.MaximizeFlags.BOTH);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user