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:
nitinosiris 2021-05-06 21:08:23 +05:30 committed by Florian Müllner
parent 91280f7227
commit a4d2f5d8b4

View File

@ -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 {