diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-12 13:29:51 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-26 13:02:45 +0100 |
commit | c8674a4e93329855c510ff5d24589dabea0e3037 (patch) | |
tree | f1da3c6b1bd567251c0e1cb83f296756049d2e94 | |
parent | 179d17cae83b9c22137a140c850a11f9f5dcfcc2 (diff) |
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.
-rw-r--r-- | src/windows/ogOperations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/ogOperations.py b/src/windows/ogOperations.py index 6178224..bdb2a39 100644 --- a/src/windows/ogOperations.py +++ b/src/windows/ogOperations.py @@ -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): |