chore: revert gui changes to working state (eea7f906)
This commit is contained in:
+4
-7
@@ -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()
|
||||||
@@ -2920,9 +2921,7 @@ def hello():
|
|||||||
r.destroy()
|
r.destroy()
|
||||||
if d: self.ui_files_base_dir = d
|
if d: self.ui_files_base_dir = d
|
||||||
imgui.separator()
|
imgui.separator()
|
||||||
row_count = max(len(self.files), 1)
|
imgui.begin_child("f_paths", imgui.ImVec2(0, -40), True)
|
||||||
child_h = min(row_count * 28 + 40, 400)
|
|
||||||
imgui.begin_child("f_paths", imgui.ImVec2(0, child_h), True)
|
|
||||||
if imgui.begin_table("files_table", 4, imgui.TableFlags_.resizable | imgui.TableFlags_.borders):
|
if imgui.begin_table("files_table", 4, imgui.TableFlags_.resizable | imgui.TableFlags_.borders):
|
||||||
imgui.table_setup_column("Actions", imgui.TableColumnFlags_.width_fixed, 40)
|
imgui.table_setup_column("Actions", imgui.TableColumnFlags_.width_fixed, 40)
|
||||||
imgui.table_setup_column("File Path", imgui.TableColumnFlags_.width_stretch)
|
imgui.table_setup_column("File Path", imgui.TableColumnFlags_.width_stretch)
|
||||||
@@ -2995,9 +2994,7 @@ def hello():
|
|||||||
r.destroy()
|
r.destroy()
|
||||||
if d: self.ui_shots_base_dir = d
|
if d: self.ui_shots_base_dir = d
|
||||||
imgui.separator()
|
imgui.separator()
|
||||||
shot_count = max(len(self.screenshots), 1)
|
imgui.begin_child("s_paths", imgui.ImVec2(0, -40), True)
|
||||||
shot_h = min(shot_count * 28 + 40, 300)
|
|
||||||
imgui.begin_child("s_paths", imgui.ImVec2(0, shot_h), True)
|
|
||||||
for i, s in enumerate(self.screenshots):
|
for i, s in enumerate(self.screenshots):
|
||||||
if imgui.button(f"x##s{i}"):
|
if imgui.button(f"x##s{i}"):
|
||||||
self.screenshots.pop(i)
|
self.screenshots.pop(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user