Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef15a07

Browse files
committed
feat(taskbar): connect aboutToQuit signal to stop taskbar events
This change ensures that taskbar events are properly cleared when the application is about to quit, preventing potential resource leaks and improving application shutdown behavior.
1 parent2d9825a commitef15a07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/core/widgets/yasb/taskbar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ def __init__(
9393
self._debounce_timer_foreground.timeout.connect(self._process_debounced_foreground_event)
9494
self._debounced_foreground_event=None
9595

96+
ifQApplication.instance():
97+
QApplication.instance().aboutToQuit.connect(self.stop_taskbar_events)
98+
99+
defstop_taskbar_events(self)->None:
100+
self._event_service.clear()
101+
96102
def_on_update_event(self,hwnd:int,event:WinEvent)->None:
97103
"""
98104
Note: This is probably not the best way to do this, but debouncing the events is the only way to prevent high CPU usage.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp