Ensure widgets get updated

Container.Refresh alone doesn't seem to work
This commit is contained in:
angelblue05 2019-01-21 06:56:49 -06:00
parent 4612826ac8
commit 11b80271dd

View file

@ -196,11 +196,14 @@ class Library(threading.Thread):
set_screensaver(value=self.screensaver)
self.screensaver = None
if xbmc.getCondVisibility('Container.Content(musicvideos)') or xbmc.getCondVisibility('Window.IsMedia'): # Prevent cursor from moving
if xbmc.getCondVisibility('Container.Content(musicvideos)'): # Prevent cursor from moving
xbmc.executebuiltin('Container.Refresh')
else: # Update widgets
xbmc.executebuiltin('UpdateLibrary(video)')
if xbmc.getCondVisibility('Window.IsMedia'):
xbmc.executebuiltin('Container.Refresh')
def stop_client(self):
self.stop_thread = True