Compare commits
2 Commits
d31b57f17e
...
7f0c825104
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f0c825104 | |||
| 60ce495d53 |
18
src/gui_2.py
18
src/gui_2.py
@@ -1084,11 +1084,11 @@ class App:
|
||||
r.destroy()
|
||||
if d: self.ui_files_base_dir = d
|
||||
imgui.separator()
|
||||
imgui.begin_child("f_paths", imgui.ImVec2(0, -40), True)
|
||||
if imgui.begin_table("files_table", 4, imgui.TableFlags_.resizable | imgui.TableFlags_.borders):
|
||||
imgui.begin_child("f_paths", imgui.ImVec2(0, 200), True)
|
||||
if imgui.begin_table("files_table", 4, imgui.TableFlags_.resizable | imgui.TableFlags_.borders | imgui.TableFlags_.scroll_x):
|
||||
imgui.table_setup_column("Actions", imgui.TableColumnFlags_.width_fixed, 40)
|
||||
imgui.table_setup_column("File Path", imgui.TableColumnFlags_.width_stretch)
|
||||
imgui.table_setup_column("Flags", imgui.TableColumnFlags_.width_fixed, 150)
|
||||
imgui.table_setup_column("Flags", imgui.TableColumnFlags_.width_fixed, 110)
|
||||
imgui.table_setup_column("Cache", imgui.TableColumnFlags_.width_fixed, 40)
|
||||
imgui.table_headers_row()
|
||||
|
||||
@@ -1146,7 +1146,7 @@ class App:
|
||||
r.destroy()
|
||||
if d: self.ui_shots_base_dir = d
|
||||
imgui.separator()
|
||||
imgui.begin_child("s_paths", imgui.ImVec2(0, -40), True)
|
||||
imgui.begin_child("s_paths", imgui.ImVec2(0, 200), True)
|
||||
for i, s in enumerate(self.screenshots):
|
||||
if imgui.button(f"x##s{i}"):
|
||||
self.screenshots.pop(i)
|
||||
@@ -1619,21 +1619,21 @@ class App:
|
||||
with self._send_thread_lock:
|
||||
if self.send_thread and self.send_thread.is_alive():
|
||||
send_busy = True
|
||||
if imgui.button("Inject File"):
|
||||
self.show_inject_modal = True
|
||||
imgui.same_line()
|
||||
if (imgui.button("Gen + Send") or ctrl_enter) and not send_busy:
|
||||
self._handle_generate_send()
|
||||
imgui.same_line()
|
||||
if imgui.button("MD Only"):
|
||||
self._handle_md_only()
|
||||
imgui.same_line()
|
||||
if imgui.button("Reset"):
|
||||
self._handle_reset_session()
|
||||
if imgui.button("Inject File"):
|
||||
self.show_inject_modal = True
|
||||
imgui.same_line()
|
||||
if imgui.button("-> History"):
|
||||
if self.ui_ai_input:
|
||||
self.disc_entries.append({"role": "User", "content": self.ui_ai_input, "collapsed": False, "ts": project_manager.now_ts()})
|
||||
imgui.same_line()
|
||||
if imgui.button("Reset"):
|
||||
self._handle_reset_session()
|
||||
|
||||
def _render_response_panel(self) -> None:
|
||||
if self._trigger_blink:
|
||||
|
||||
Reference in New Issue
Block a user