fixes to main menu ribbon
This commit is contained in:
+8
-6
@@ -902,7 +902,8 @@ class App:
|
||||
for w in self.show_windows.keys():
|
||||
_, self.show_windows[w] = imgui.menu_item(w, "", self.show_windows[w])
|
||||
with imscope.menu("Project") as (active):
|
||||
if active and imgui.menu_item("Save All", "", False)[0]:
|
||||
if active:
|
||||
if imgui.menu_item("Save All", "", False)[0]:
|
||||
self._flush_to_project()
|
||||
self._flush_to_config()
|
||||
models.save_config(self.config)
|
||||
@@ -923,7 +924,8 @@ class App:
|
||||
except Exception as e:
|
||||
self.ai_status = f"error: {e}"
|
||||
with imscope.menu("Layout") as (active):
|
||||
if active and imgui.menu_item("Save Current...", "", False)[0]:
|
||||
if active:
|
||||
if imgui.menu_item("Save Current...", "", False)[0]:
|
||||
self._show_save_workspace_profile_modal = True
|
||||
self._new_workspace_profile_name = ""
|
||||
imgui.separator()
|
||||
@@ -3294,13 +3296,13 @@ class App:
|
||||
|
||||
def _render_discussion_hub(self) -> None:
|
||||
with imscope.tab_bar("discussion_hub_tabs"):
|
||||
with imscope.tab_item("Discussion") as (exp, _):
|
||||
with imscope.tab_item("Discussion") as (exp, opened):
|
||||
if exp: self._render_discussion_tab()
|
||||
with imscope.tab_item("Context Composition") as (exp, _):
|
||||
with imscope.tab_item("Context Composition") as (exp, opened):
|
||||
if exp: self._render_context_composition_panel()
|
||||
with imscope.tab_item("Snapshot") as (exp, _):
|
||||
with imscope.tab_item("Snapshot") as (exp, opened):
|
||||
if exp: self._render_snapshot_tab()
|
||||
with imscope.tab_item("Takes") as (exp, _):
|
||||
with imscope.tab_item("Takes") as (exp, opened):
|
||||
if exp: self._render_takes_panel()
|
||||
|
||||
def _render_discussion_entries(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user