From c8674a4e93329855c510ff5d24589dabea0e3037 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') 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): -- cgit v1.2.3-18-g5258