fix(log): Refresh Registry button now calls load_registry() on the live instance
ROOT CAUSE: gui_2.py:1675 re-instantiated LogRegistry() which opens the TOML but never called .load_registry() so the table stayed empty. FIX: in-place load_registry() on the existing instance — preserves in-memory state (any pending update_session_metadata call) and matches the user's intent of 'refresh from disk'.
This commit is contained in:
+2
-1
@@ -1672,7 +1672,8 @@ def render_log_management(app: App) -> None:
|
||||
if exp:
|
||||
if app._log_registry is None: app._log_registry = log_registry.LogRegistry(str(paths.get_logs_dir() / "log_registry.toml"))
|
||||
else:
|
||||
if imgui.button("Refresh Registry"): app._log_registry = log_registry.LogRegistry(str(paths.get_logs_dir() / "log_registry.toml"))
|
||||
if imgui.button("Refresh Registry"):
|
||||
if app._log_registry is not None: app._log_registry.load_registry()
|
||||
imgui.same_line()
|
||||
if imgui.button("Load Log"): app.cb_load_prior_log()
|
||||
imgui.same_line()
|
||||
|
||||
Reference in New Issue
Block a user