From 00c9fc79f970d5615e8d332e6d106021a51eb98e Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 25 Apr 2020 18:31:09 -0700 Subject: [PATCH] Rename sys_tray_icon setting --- Tautulli.py | 8 +++++--- data/interfaces/default/settings.html | 6 ++---- data/interfaces/default/welcome.html | 2 +- plexpy/config.py | 2 +- plexpy/webserve.py | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Tautulli.py b/Tautulli.py index 09ab4462..c9bf92fb 100755 --- a/Tautulli.py +++ b/Tautulli.py @@ -245,8 +245,9 @@ def main(): # Windows system tray icon if common.PLATFORM == 'Windows': - if plexpy.CONFIG.WIN_SYS_TRAY: + if plexpy.CONFIG.SYS_TRAY_ICON: plexpy.WIN_SYS_TRAY_ICON = windows.WindowsSystemTray() + plexpy.WIN_SYS_TRAY_ICON.start() windows.set_startup() elif common.PLATFORM == 'Darwin': macos.set_startup() @@ -258,9 +259,10 @@ def main(): plexpy.launch_browser(plexpy.CONFIG.HTTP_HOST, plexpy.HTTP_PORT, plexpy.HTTP_ROOT) - if common.PLATFORM == 'Darwin': + if common.PLATFORM == 'Darwin' and plexpy.CONFIG.SYS_TRAY_ICON: threading.Thread(target=wait).start() - macos.MacOSSystemTray().start() + plexpy.MAC_SYS_TRAY_ICON = macos.MacOSSystemTray() + plexpy.MAC_SYS_TRAY_ICON.start() else: wait() diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index eed76e89..4be05ab4 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -448,15 +448,13 @@

Note: Web interface changes require a restart.

- % if common.PLATFORM == 'Windows': + % if common.PLATFORM in ('Windows', 'Darwin'):

Show Tautulli shortcut in the system tray.

- % endif - % if common.PLATFORM in ('Windows', 'Darwin'):