From 2d8983ece3c465121e612c6fa960328f9a58f0f8 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sun, 15 Feb 2026 19:08:34 +0000 Subject: [PATCH] fix: Activity Bar init order - hide_timer must be created before _apply_config The hide_timer QTimer was being created after _apply_config() was called, but _apply_config() tries to set the timer interval. This caused: AttributeError: 'WindowsTaskbar' object has no attribute 'hide_timer' Fix: Move hide_timer creation to before _apply_config() call. --- core/activity_bar.py | 8 ++++---- data/eu_utility.db | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 data/eu_utility.db diff --git a/core/activity_bar.py b/core/activity_bar.py index b8d0a4b..77c1935 100644 --- a/core/activity_bar.py +++ b/core/activity_bar.py @@ -83,14 +83,14 @@ class WindowsTaskbar(QFrame): self.is_expanded = False self.search_text = "" + # Auto-hide timer (must be created before _apply_config) + self.hide_timer = QTimer(self) + self.hide_timer.timeout.connect(self._auto_hide) + self._setup_window() self._setup_ui() self._apply_config() - # Auto-hide - self.hide_timer = QTimer(self) - self.hide_timer.timeout.connect(self._auto_hide) - # Show if enabled if self.config.enabled: self.show() diff --git a/data/eu_utility.db b/data/eu_utility.db new file mode 100644 index 0000000..e69de29