windows: bind the systray process lifetime to ogClient

Add daemon=True to the systray process in order to make it close
when the ogClient process closes.
master
Alejandro Sirgo Rica 2024-11-12 13:29:51 +01:00
parent 179d17cae8
commit c8674a4e93
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class OgWindowsOperations:
def __init__(self):
freeze_support()
mp.set_start_method('spawn')
self.systray_p = Process(target=create_systray)
self.systray_p = Process(target=create_systray, daemon=True)
self.systray_p.start()
def _restartBrowser(self, url):