From 11b80271dd370aea2a3c5b08a5813826404d2f8f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 21 Jan 2019 06:56:49 -0600 Subject: [PATCH] Ensure widgets get updated Container.Refresh alone doesn't seem to work --- resources/lib/library.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/library.py b/resources/lib/library.py index c227e12e..210cad4a 100644 --- a/resources/lib/library.py +++ b/resources/lib/library.py @@ -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