fix(gui): Ensure discussion selection in combo box is immediately reflected in takes tabs
This commit is contained in:
@@ -2330,7 +2330,10 @@ def hello():
|
|||||||
imgui.set_item_default_focus()
|
imgui.set_item_default_focus()
|
||||||
imgui.end_combo()
|
imgui.end_combo()
|
||||||
|
|
||||||
|
# Sync variables in case combo selection changed self.active_discussion
|
||||||
|
active_base = self.active_discussion.split("_take_")[0]
|
||||||
current_takes = grouped_discussions.get(active_base, [])
|
current_takes = grouped_discussions.get(active_base, [])
|
||||||
|
|
||||||
if imgui.begin_tab_bar("discussion_takes_tabs"):
|
if imgui.begin_tab_bar("discussion_takes_tabs"):
|
||||||
for take_name in current_takes:
|
for take_name in current_takes:
|
||||||
label = "Original" if take_name == active_base else take_name.replace(f"{active_base}_", "").replace("_", " ").title()
|
label = "Original" if take_name == active_base else take_name.replace(f"{active_base}_", "").replace("_", " ").title()
|
||||||
|
|||||||
Reference in New Issue
Block a user