]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit - qcsrc/menu/command/menu_cmd.qc
Fix #2724 "Pressing escape opens wrong menu when watching demos". 1058/head
authorterencehill <piuntn@gmail.com>
Sun, 24 Jul 2022 18:20:51 +0000 (20:20 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 27 Jul 2022 13:50:44 +0000 (15:50 +0200)
commit338162f40c1e4b9b7a780983d17e0cc2d5e28f0f
tree907433e5d690e796d666d4c92f579728782890d8
parent12bf7e12974dd50248c762a23897fcc891ca32c2
Fix #2724 "Pressing escape opens wrong menu when watching demos".

Since the Welcome dialog was opened and hidden instantly (not closed), on the next ESC press it popped up again and only on the next ESC press it was really closed.
Fixed thanks to a new menu_cmd command that can close a specific dialog, or in the case of the Welcome dialog it allows initializing it without opening it
qcsrc/client/main.qc
qcsrc/menu/command/menu_cmd.qc
qcsrc/menu/menu.qc