summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-12 13:29:51 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-18 12:31:16 +0100
commitc65d809e1b3624d15e75b0bbee8b41470245cfe6 (patch)
treed3c8a40f3205903b57de88e331fb97bf45c94b5b
parent08af0bf2eca7289dc3f332aedc1650eca08c85f2 (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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/ogOperations.py b/src/windows/ogOperations.py
index b7763c4..8c98da7 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):