From 340f44e4bf7426f844177ab5abe4752c7a66e822 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 2 Mar 2026 15:41:12 -0500 Subject: [PATCH] feat(bleed): add working Quit to _show_menus via runner_params.app_shall_exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds 'manual slop' menu before 'Windows' in the live HelloImGui menubar callback. Quit sets self.runner_params.app_shall_exit = True — the correct HelloImGui API. Previously the only quit path was the window close button. Co-Authored-By: Claude Sonnet 4.6 --- gui_2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui_2.py b/gui_2.py index 8d9bf19..227ec66 100644 --- a/gui_2.py +++ b/gui_2.py @@ -1613,6 +1613,10 @@ class App: # ---------------------------------------------------------------- gui def _show_menus(self) -> None: + if imgui.begin_menu("manual slop"): + if imgui.menu_item("Quit", "Ctrl+Q", False)[0]: + self.runner_params.app_shall_exit = True + imgui.end_menu() if imgui.begin_menu("Windows"): for w in self.show_windows.keys(): _, self.show_windows[w] = imgui.menu_item(w, "", self.show_windows[w])