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