From 6e425f2c06cec9c5f20c15234d1890b7f33af8ce Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Wed, 11 Feb 2026 09:15:57 +0000 Subject: [PATCH] fix: move _load_settings() after setup_ui() to fix AttributeError - log_info() needs log_output which is created in setup_ui() - Move _load_settings() call to after UI initialization - Fixes 'MainWindow' object has no attribute 'log_output' error --- ui/main_window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/main_window.py b/ui/main_window.py index 57144a8..8813b65 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -272,9 +272,6 @@ class MainWindow(QMainWindow): # Player settings self.player_name: str = "" # Set via Settings dialog - - # Load persistent settings - self._load_settings() # Selected gear self._selected_weapon: Optional[str] = None @@ -305,6 +302,9 @@ class MainWindow(QMainWindow): self.create_menu_bar() self.create_status_bar() + # Load persistent settings (after UI setup so log_info works) + self._load_settings() + # Load initial data self.refresh_project_list()