style(ui): Move Force Prune Logs button to the top of Log Management panel

This commit is contained in:
2026-03-07 12:28:30 -05:00
parent 7f0c825104
commit 3671a28aed

View File

@@ -1012,6 +1012,8 @@ class App:
if imgui.button("Refresh Registry"): if imgui.button("Refresh Registry"):
self._log_registry = log_registry.LogRegistry(str(paths.get_logs_dir() / "log_registry.toml")) self._log_registry = log_registry.LogRegistry(str(paths.get_logs_dir() / "log_registry.toml"))
imgui.same_line() 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 registry = self._log_registry
sessions = registry.data sessions = registry.data
@@ -1066,8 +1068,6 @@ class App:
) )
imgui.end_table() imgui.end_table()
if imgui.button("Force Prune Logs"):
self.controller.event_queue.put("gui_task", {"action": "click", "item": "btn_prune_logs"})
imgui.end() imgui.end()
def _render_files_panel(self) -> None: def _render_files_panel(self) -> None: