Skip to content

Commit

Permalink
Remove workaround for login screen bug with profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
sualfred committed Apr 28, 2020
1 parent e89a98f commit 9a4c772
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions resources/lib/service_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ def start(self):

self.player_monitor = PlayerMonitor()

master_lock = None
login_reload = False

service_interval = xbmc.getInfoLabel('Skin.String(ServiceInterval)') or ADDON.getSetting('service_interval')
service_interval = float(service_interval)
background_interval = xbmc.getInfoLabel('Skin.String(BackgroundInterval)') or ADDON.getSetting('background_interval')
Expand Down Expand Up @@ -148,34 +145,6 @@ def start(self):
else:
widget_refresh += service_interval

''' Workaround for login screen bug
'''
if not login_reload:
if condition('System.HasLoginScreen'):
log('System has login screen enabled. Reload the skin to load all strings correctly.')
execute('ReloadSkin()')
login_reload = True

''' Master lock reload logic for widgets
'''
if condition('System.HasLocks'):
if master_lock is None:
master_lock = condition('System.IsMaster')
log('Master mode: %s' % master_lock)

if master_lock == True and not condition('System.IsMaster'):
log('Left master mode. Reload skin.')
master_lock = False
execute('ReloadSkin()')

elif master_lock == False and condition('System.IsMaster'):
log('Entered master mode. Reload skin.')
master_lock = True
execute('ReloadSkin()')

elif master_lock is not None:
master_lock = None

self.waitForAbort(service_interval)

self.stop()
Expand Down

0 comments on commit 9a4c772

Please sign in to comment.