From 7a07e1a9e4a9fce0ed944dea13355e2c6480da0a Mon Sep 17 00:00:00 2001 From: DevilXD Date: Mon, 29 May 2023 14:32:03 +0200 Subject: [PATCH] Use run_in_executor for the tray icon thread --- gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index df4b780..fd7eea2 100644 --- a/gui.py +++ b/gui.py @@ -1079,7 +1079,8 @@ class TrayIcon: pystray.MenuItem(_("gui", "tray", "quit"), bridge(self.quit)), ) self.icon = pystray.Icon("twitch_miner", self.icon_image, self.get_title(drop), menu) - self.icon.run_detached() + # self.icon.run_detached() + loop.run_in_executor(None, self.icon.run) def stop(self): if self.icon is not None: