diff --git a/docs/guide_gui_2.md b/docs/guide_gui_2.md index 5f0a212b..f8146816 100644 --- a/docs/guide_gui_2.md +++ b/docs/guide_gui_2.md @@ -201,21 +201,21 @@ def render_(app: App) -> None: ### Hot Reload Hook -The Hot Reload module (`src/hot_reloader.py`) registers `src.gui_2` as a hot-reloadable module. The `state_keys` list (line 155) tells the reloader which App attributes to snapshot and restore: +The Hot Reload module (`src/hot_reloader.py`) registers `src.gui_2` as a hot-reloadable module. The `state_keys` list (at `src/gui_2.py:285`) tells the reloader which App attributes to snapshot and restore: ```python state_keys=['active_discussion', 'show_windows', 'ui_file_paths', 'ui_screenshot_paths', 'disc_entries', 'disc_roles'] ``` -`delegation_targets` (line 156) lists the module-level functions the App calls into: +`delegation_targets` (at `src/gui_2.py:286`) lists the App's `_render_*` wrapper methods (not module-level `render_*` functions): ```python delegation_targets=['_render_main_interface', '_render_discussion_hub', '_render_files_and_media', '_render_ai_settings_hub', '_render_operations_hub', '_render_mma_dashboard'] ``` -The user presses `Ctrl+Alt+R` → `_trigger_hot_reload()` → `HotReloader.reload("src.gui_2", app)`. The module is re-imported, the App's state is restored, and the next frame uses the new render functions. +The user presses `Ctrl+Alt+R` → `App._trigger_hot_reload()` (`src/gui_2.py:540`) → `HotReloader.reload_all(self)` (at `src/gui_2.py:542`). All registered modules are re-imported, the App's state is restored, and the next frame uses the new render functions. ### Snapshots (Undo/Redo)