fix(gui): fix imgui.selectable() signature mismatch in _render_history_window
selectable() now requires p_selected bool arg, not just label. Changed to use _, selected = imgui.selectable(label, False) pattern.
This commit is contained in:
+2
-1
@@ -760,7 +760,8 @@ class App:
|
|||||||
ts_str = datetime.datetime.fromtimestamp(ts).strftime("%H:%M:%S")
|
ts_str = datetime.datetime.fromtimestamp(ts).strftime("%H:%M:%S")
|
||||||
|
|
||||||
label = f"[{ts_str}] {desc}##{actual_idx}"
|
label = f"[{ts_str}] {desc}##{actual_idx}"
|
||||||
if imgui.selectable(label)[0]:
|
_, selected = imgui.selectable(label, False)
|
||||||
|
if selected:
|
||||||
self._handle_jump_to_history(actual_idx)
|
self._handle_jump_to_history(actual_idx)
|
||||||
imgui.end_child()
|
imgui.end_child()
|
||||||
imgui.end()
|
imgui.end()
|
||||||
|
|||||||
Reference in New Issue
Block a user