finally (still not fully polsihed but not crashing)
This commit is contained in:
10
src/gui_2.py
10
src/gui_2.py
@@ -1010,9 +1010,12 @@ class App:
|
||||
imgui.dummy(imgui.ImVec2(0, 4))
|
||||
if imgui.button("Save##p", imgui.ImVec2(100, 0)):
|
||||
if self._editing_preset_name.strip():
|
||||
p = models.Preset(name=self._editing_preset_name.strip(), system_prompt=self._editing_preset_system_prompt)
|
||||
self.controller._cb_save_preset(p, self._editing_preset_scope)
|
||||
self.ai_status = f"Saved: {p.name}"
|
||||
self.controller._cb_save_preset(
|
||||
self._editing_preset_name.strip(),
|
||||
self._editing_preset_system_prompt,
|
||||
self._editing_preset_scope
|
||||
)
|
||||
self.ai_status = f"Saved: {self._editing_preset_name}"
|
||||
imgui.same_line()
|
||||
if imgui.button("Delete##p", imgui.ImVec2(100, 0)):
|
||||
if self._editing_preset_name:
|
||||
@@ -1456,7 +1459,6 @@ class App:
|
||||
ch, self.ui_auto_scroll_comms = imgui.checkbox("Auto-scroll Comms History", self.ui_auto_scroll_comms)
|
||||
ch, self.ui_auto_scroll_tool_calls = imgui.checkbox("Auto-scroll Tool History", self.ui_auto_scroll_tool_calls)
|
||||
if self.perf_profiling_enabled: self.perf_monitor.end_component("_render_projects_panel")
|
||||
|
||||
def _render_track_proposal_modal(self) -> None:
|
||||
if self._show_track_proposal_modal:
|
||||
imgui.open_popup("Track Proposal")
|
||||
|
||||
Reference in New Issue
Block a user