From 3671a28aedf5d7bf6c0e39e7b332309276d4952d Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 7 Mar 2026 12:28:30 -0500 Subject: [PATCH] style(ui): Move Force Prune Logs button to the top of Log Management panel --- src/gui_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_2.py b/src/gui_2.py index a35f966..9d1c064 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -1012,6 +1012,8 @@ class App: if imgui.button("Refresh Registry"): self._log_registry = log_registry.LogRegistry(str(paths.get_logs_dir() / "log_registry.toml")) imgui.same_line() + if imgui.button("Force Prune Logs"): + self.controller.event_queue.put("gui_task", {"action": "click", "item": "btn_prune_logs"}) registry = self._log_registry sessions = registry.data @@ -1066,8 +1068,6 @@ class App: ) imgui.end_table() - if imgui.button("Force Prune Logs"): - self.controller.event_queue.put("gui_task", {"action": "click", "item": "btn_prune_logs"}) imgui.end() def _render_files_panel(self) -> None: