From e09e8f2c9cf4c18529acb46a3a4c2d03739bb178 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 12 Nov 2024 13:29:51 +0100 Subject: 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. --- src/windows/ogOperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows/ogOperations.py') 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): -- cgit v1.2.3-18-g5258