fix(gui): Ensure discussion selection in combo box is immediately reflected in takes tabs

This commit is contained in:
2026-03-21 17:02:28 -04:00
parent d89f971270
commit 133fd60613

View File

@@ -2330,7 +2330,10 @@ def hello():
imgui.set_item_default_focus()
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, [])
if imgui.begin_tab_bar("discussion_takes_tabs"):
for take_name in current_takes:
label = "Original" if take_name == active_base else take_name.replace(f"{active_base}_", "").replace("_", " ").title()