Update Windows system tray with start at login option

This commit is contained in:
JonnyWong16 2020-04-25 12:09:32 -07:00
commit 315be9f3eb
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 30 additions and 9 deletions

View file

@ -168,11 +168,12 @@ def check_update(scheduler=False, notify=False):
plexpy.UPDATE_AVAILABLE = False
if plexpy.WIN_SYS_TRAY_ICON:
image_dir = os.path.join(plexpy.PROG_DIR, 'data/interfaces/', plexpy.CONFIG.INTERFACE, 'images')
if plexpy.UPDATE_AVAILABLE:
icon = os.path.join(plexpy.PROG_DIR, 'data/interfaces/', plexpy.CONFIG.INTERFACE, 'images/logo_tray-update.ico')
icon = os.path.join(image_dir, 'logo-circle-update.ico')
hover_text = common.PRODUCT + ' - Update Available!'
else:
icon = os.path.join(plexpy.PROG_DIR, 'data/interfaces/', plexpy.CONFIG.INTERFACE, 'images/logo_tray.ico')
icon = os.path.join(image_dir, 'logo-circle.ico')
hover_text = common.PRODUCT + ' - No Update Available'
plexpy.WIN_SYS_TRAY_ICON.update(icon=icon, hover_text=hover_text)