mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Set macOS menu bar icon thread to daemon
This commit is contained in:
parent
f70f814c70
commit
dbd2d28877
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue