]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Menu: fix potential bug if a stand-alone non-root dialog were opened via menu_cmd...
authorterencehill <piuntn@gmail.com>
Fri, 28 Feb 2025 18:27:32 +0000 (19:27 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 28 Feb 2025 18:45:12 +0000 (19:45 +0100)
commit40e6770bae2cf5908861b7d2a4cc19b11a9261e6
tree4ff85a38d218c8794eb44e421f8c3d8fe6ba345f
parent9f73dcbbc647fdeeb7eca8d45f9e5d0fa0ed640a
Menu: fix potential bug if a stand-alone non-root dialog were opened via menu_cmd directmenu

Currently none of such dialogs can be opened in that way because they don't have the name field
set but if e.g. the Mutators dialog had it, then an empty menu would be displayed after closing
the Mutators dialog if opened via menu_cmd directmenu Mutators

Now the menu will be always hidden when closing a dialog that was opened via
menu_cmd directmenu <dialog_name>

This new behaviour is not applied for dialogs opened via
menu_cmd <dialog_name>
qcsrc/menu/command/menu_cmd.qc
qcsrc/menu/item/dialog.qc
qcsrc/menu/item/dialog.qh
qcsrc/menu/menu.qc
qcsrc/menu/menu.qh
qcsrc/menu/xonotic/nexposee.qc
qcsrc/menu/xonotic/rootdialog.qc