Rename sys_tray_icon setting

This commit is contained in:
JonnyWong16 2020-04-25 18:31:09 -07:00
parent d5373c3992
commit 00c9fc79f9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 11 additions and 11 deletions

View file

@ -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()