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
+6
View File
@@ -31,6 +31,12 @@ void overlay::Window::update() {
// if the overlay is hidden just reactivate it
if (!this->overlay->get_active()) {
// but don't let the main menu occlude it if it was previously visible
if (this->overlay->window_main_menu) {
this->overlay->window_main_menu->set_active(false);
}
this->active = true;
this->overlay->set_active(true);
} else {