fix(bleed): remove dead begin_main_menu_bar() block from _gui_func (lines 1674-1697)

HelloImGui commits the menubar before invoking _gui_func, so begin_main_menu_bar()
always returned False. The 24-line block (Quit, View, Project menus) never executed.
Also removes the misaligned '# ---- Menubar' comment and dead '# --- Hubs ---' comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 15:39:19 -05:00
parent 129cc33d01
commit b0f5a5c8d3

View File

@@ -1671,30 +1671,6 @@ class App:
for tc in self._pending_tool_calls:
self._tool_log.append(tc)
self._pending_tool_calls.clear()
# ---- Menubar
if imgui.begin_main_menu_bar():
if imgui.begin_menu("manual slop"):
if imgui.menu_item("Quit", "Ctrl+Q", False)[0]:
self.should_quit = True
imgui.end_menu()
if imgui.begin_menu("View"):
for name in self.show_windows:
_, self.show_windows[name] = imgui.menu_item(name, "", self.show_windows[name])
imgui.end_menu()
if imgui.begin_menu("Project"):
if imgui.menu_item("Save All", "Ctrl+S", False)[0]:
self._flush_to_project()
self._save_active_project()
self._flush_to_config()
save_config(self.config)
self.ai_status = "config saved"
if imgui.menu_item("Generate MD Only", "", False)[0]:
self._handle_md_only()
if imgui.menu_item("Reset Session", "", False)[0]:
self._handle_reset_session()
imgui.end_menu()
imgui.end_main_menu_bar()
# --- Hubs ---
if self.show_windows.get("Context Hub", False):
exp, self.show_windows["Context Hub"] = imgui.begin("Context Hub", self.show_windows["Context Hub"])
if exp: