overlay: make overlay toggle behavior more consistent (#743)

Clean up how various overlay toggle shortcuts work with the main menu
visible.
This commit is contained in:
bicarus
2026-06-07 21:56:06 -07:00
committed by GitHub
parent a54a62d0d7
commit 9651051990
4 changed files with 16 additions and 8 deletions
+4 -2
View File
@@ -31,8 +31,10 @@ namespace overlay::windows {
void ExitPrompt::update() {
Window::update();
// allow the popup to be reopened the next time the menu is shown
if (!this->active) {
// allow the popup to be reopened the next time the menu is shown.
// also reset while the overlay is hidden: new_frame() doesn't submit the
// popup then, so ImGui closes it and it must be re-opened when shown again
if (!this->active || !this->overlay->get_active()) {
this->popup_opened = false;
}
}