windowMenu: Fix typo
Closing windows is done with delete(), not close() ...
This commit is contained in:
parent
264a51de3f
commit
4c7b992c36
@ -115,7 +115,7 @@ const WindowMenu = new Lang.Class({
|
||||
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
item = this.addAction(_("Close"), Lang.bind(this, function(event) {
|
||||
window.close(event.get_time());
|
||||
window.delete(event.get_time());
|
||||
}));
|
||||
if (!window.can_close())
|
||||
item.setSensitive(false);
|
||||
|
Loading…
Reference in New Issue
Block a user