Set macOS menu bar icon thread to daemon

This commit is contained in:
JonnyWong16 2020-07-03 19:47:57 -07:00
parent f70f814c70
commit dbd2d28877
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -265,7 +265,10 @@ def main():
if plexpy.CONFIG.SYS_TRAY_ICON: if plexpy.CONFIG.SYS_TRAY_ICON:
# MacOS menu bar icon must be run on the main thread and is blocking # MacOS menu bar icon must be run on the main thread and is blocking
# Start the rest of Tautulli on a new thread # Start the rest of Tautulli on a new thread
threading.Thread(target=wait).start() thread = threading.Thread(target=wait)
thread.daemon = True
thread.start()
plexpy.MAC_SYS_TRAY_ICON = macos.MacOSSystemTray() plexpy.MAC_SYS_TRAY_ICON = macos.MacOSSystemTray()
plexpy.MAC_SYS_TRAY_ICON.start() plexpy.MAC_SYS_TRAY_ICON.start()
else: else: