mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Ensure widgets get updated
Container.Refresh alone doesn't seem to work
This commit is contained in:
parent
4612826ac8
commit
11b80271dd
1 changed files with 4 additions and 1 deletions
|
@ -196,11 +196,14 @@ class Library(threading.Thread):
|
||||||
set_screensaver(value=self.screensaver)
|
set_screensaver(value=self.screensaver)
|
||||||
self.screensaver = None
|
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')
|
xbmc.executebuiltin('Container.Refresh')
|
||||||
else: # Update widgets
|
else: # Update widgets
|
||||||
xbmc.executebuiltin('UpdateLibrary(video)')
|
xbmc.executebuiltin('UpdateLibrary(video)')
|
||||||
|
|
||||||
|
if xbmc.getCondVisibility('Window.IsMedia'):
|
||||||
|
xbmc.executebuiltin('Container.Refresh')
|
||||||
|
|
||||||
def stop_client(self):
|
def stop_client(self):
|
||||||
self.stop_thread = True
|
self.stop_thread = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue