mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-30 17:09:36 +00:00
Use run_in_executor for the tray icon thread
This commit is contained in:
3
gui.py
3
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:
|
||||
|
||||
Reference in New Issue
Block a user