Refactor Windows system tray code

This commit is contained in:
JonnyWong16
2020-04-25 13:42:44 -07:00
parent 53cd759422
commit f8f0717913
2 changed files with 62 additions and 48 deletions

View File

@@ -244,9 +244,9 @@ def main():
# Windows system tray icon
if common.PLATFORM == 'Windows':
windows.set_startup()
if plexpy.CONFIG.WIN_SYS_TRAY:
windows.win_system_tray()
plexpy.WIN_SYS_TRAY_ICON = windows.WindowsSystemTray()
windows.set_startup()
elif common.PLATFORM == 'Darwin':
macos.set_startup()