mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Fix MacOS tray icon
This commit is contained in:
parent
b8ea04f5a4
commit
be38028244
2 changed files with 4 additions and 4 deletions
|
@ -251,8 +251,6 @@ def main():
|
||||||
elif common.PLATFORM == 'Darwin':
|
elif common.PLATFORM == 'Darwin':
|
||||||
macos.set_startup()
|
macos.set_startup()
|
||||||
|
|
||||||
logger.info("Tautulli is ready!")
|
|
||||||
|
|
||||||
# Open webbrowser
|
# Open webbrowser
|
||||||
if plexpy.CONFIG.LAUNCH_BROWSER and not args.nolaunch and not plexpy.DEV:
|
if plexpy.CONFIG.LAUNCH_BROWSER and not args.nolaunch and not plexpy.DEV:
|
||||||
plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT,
|
plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT,
|
||||||
|
@ -269,6 +267,8 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def wait():
|
def wait():
|
||||||
|
logger.info("Tautulli is ready!")
|
||||||
|
|
||||||
# Wait endlessly for a signal to happen
|
# Wait endlessly for a signal to happen
|
||||||
while True:
|
while True:
|
||||||
if not plexpy.SIGNAL:
|
if not plexpy.SIGNAL:
|
||||||
|
|
|
@ -51,8 +51,8 @@ class MacOSSystemTray(object):
|
||||||
rumps.MenuItem('Quit', callback=self.tray_quit)
|
rumps.MenuItem('Quit', callback=self.tray_quit)
|
||||||
]
|
]
|
||||||
if not plexpy.FROZEN:
|
if not plexpy.FROZEN:
|
||||||
self.menu.insert(3, rumps.MenuItem('Update', callback=self.tray_update))
|
self.menu.insert(5, rumps.MenuItem('Update', callback=self.tray_update))
|
||||||
self.menu[1].state = plexpy.CONFIG.LAUNCH_STARTUP
|
self.menu[2].state = plexpy.CONFIG.LAUNCH_STARTUP
|
||||||
|
|
||||||
self.tray_icon = rumps.App(common.PRODUCT, icon=self.icon, menu=self.menu, quit_button=None)
|
self.tray_icon = rumps.App(common.PRODUCT, icon=self.icon, menu=self.menu, quit_button=None)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue