fix: QTimer parent - use self.app instead of self (EUUtilityApp is not QObject)
This commit is contained in:
parent
18289eb646
commit
eba2e029e3
|
|
@ -377,7 +377,7 @@ class EUUtilityApp:
|
||||||
"""Start timer to detect EU window focus and show/hide activity bar."""
|
"""Start timer to detect EU window focus and show/hide activity bar."""
|
||||||
from PyQt6.QtCore import QTimer
|
from PyQt6.QtCore import QTimer
|
||||||
|
|
||||||
self.eu_focus_timer = QTimer(self)
|
self.eu_focus_timer = QTimer(self.app) # Use app as parent, not self
|
||||||
self.eu_focus_timer.timeout.connect(self._check_eu_focus)
|
self.eu_focus_timer.timeout.connect(self._check_eu_focus)
|
||||||
self.eu_focus_timer.start(500) # Check every 500ms
|
self.eu_focus_timer.start(500) # Check every 500ms
|
||||||
self._last_eu_focused = False
|
self._last_eu_focused = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue