Bind the on_gui_closed event for manager_window

This commit is contained in:
Will Berry
2023-04-03 15:16:24 -04:00
parent 9f9477bffa
commit 7c61dcff18
3 changed files with 10 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ end
local manager_gui = {}
function manager_gui.on_lua_shortcut(e)
if e.prototype_name == "cybersyn-toggle-gui" or e.input_name == "cybersyn-toggle-gui" then
if e.prototype_name == "cybersyn-toggle-gui" or e.input_name == "cybersyn-toggle-gui" or e.element.name == "manager_window" then
manager.wrapper(e, manager.handle.manager_toggle)
end
end