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-15 10:47:05 +0100 |
commit | e09e8f2c9cf4c18529acb46a3a4c2d03739bb178 (patch) | |
tree | 44913ded3d3a19feec0183562286f549a95080b1 /src/windows | |
parent | 665df8fa799b267f87bc9d0254efaf152d875f27 (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.
Diffstat (limited to 'src/windows')
-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 62a38b0..bc7e954 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): |