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.
This commit is contained in:
parent
0feaf24732
commit
2d8983ece3
|
|
@ -83,14 +83,14 @@ class WindowsTaskbar(QFrame):
|
||||||
self.is_expanded = False
|
self.is_expanded = False
|
||||||
self.search_text = ""
|
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_window()
|
||||||
self._setup_ui()
|
self._setup_ui()
|
||||||
self._apply_config()
|
self._apply_config()
|
||||||
|
|
||||||
# Auto-hide
|
|
||||||
self.hide_timer = QTimer(self)
|
|
||||||
self.hide_timer.timeout.connect(self._auto_hide)
|
|
||||||
|
|
||||||
# Show if enabled
|
# Show if enabled
|
||||||
if self.config.enabled:
|
if self.config.enabled:
|
||||||
self.show()
|
self.show()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue