refactor(gui): Fix scoping issues and restore missing _render_discussion_tab
This commit is contained in:
+5
-4
@@ -1244,6 +1244,8 @@ class App:
|
|||||||
with imscope.style_color(imgui.Col_.text, vec4(80, 255, 80)) if is_nerv else nullcontext():
|
with imscope.style_color(imgui.Col_.text, vec4(80, 255, 80)) if is_nerv else nullcontext():
|
||||||
markdown_helper.render(content, context_id=f'prior_disc_{idx}')
|
markdown_helper.render(content, context_id=f'prior_disc_{idx}')
|
||||||
imgui.separator()
|
imgui.separator()
|
||||||
|
|
||||||
|
def _render_discussion_selector(self) -> None:
|
||||||
if not imgui.collapsing_header("Discussions", imgui.TreeNodeFlags_.default_open): return
|
if not imgui.collapsing_header("Discussions", imgui.TreeNodeFlags_.default_open): return
|
||||||
names = self._get_discussion_names(); grouped = {}
|
names = self._get_discussion_names(); grouped = {}
|
||||||
for name in names:
|
for name in names:
|
||||||
@@ -2742,10 +2744,7 @@ class App:
|
|||||||
# Render soft shadow behind the modal
|
# Render soft shadow behind the modal
|
||||||
shaders.draw_soft_shadow(imgui.get_background_draw_list(), p_min, p_max, imgui.ImVec4(0, 0, 0, 0.6), 25.0, 6.0)
|
shaders.draw_soft_shadow(imgui.get_background_draw_list(), p_min, p_max, imgui.ImVec4(0, 0, 0, 0.6), 25.0, 6.0)
|
||||||
|
|
||||||
if not self._show_track_proposal_modal:
|
if self._show_track_proposal_modal:
|
||||||
imgui.close_current_popup()
|
|
||||||
imgui.end_popup()
|
|
||||||
return
|
|
||||||
imgui.text_colored(C_IN, "Proposed Implementation Tracks")
|
imgui.text_colored(C_IN, "Proposed Implementation Tracks")
|
||||||
imgui.separator()
|
imgui.separator()
|
||||||
if not self.proposed_tracks:
|
if not self.proposed_tracks:
|
||||||
@@ -2776,6 +2775,8 @@ class App:
|
|||||||
if imgui.button("Cancel", imgui.ImVec2(120, 0)):
|
if imgui.button("Cancel", imgui.ImVec2(120, 0)):
|
||||||
self._show_track_proposal_modal = False
|
self._show_track_proposal_modal = False
|
||||||
imgui.close_current_popup()
|
imgui.close_current_popup()
|
||||||
|
else:
|
||||||
|
imgui.close_current_popup()
|
||||||
imgui.end_popup()
|
imgui.end_popup()
|
||||||
|
|
||||||
def _render_patch_modal(self) -> None:
|
def _render_patch_modal(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user