From 89eb9bc2a49f60cab9435b1773a732d05a36df05 Mon Sep 17 00:00:00 2001 From: hippojay Date: Tue, 5 May 2015 22:31:00 +0100 Subject: [PATCH] clear shelf items on signout/switch --- resources/lib/plexbmc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/plexbmc.py b/resources/lib/plexbmc.py index 86802983..d8211101 100644 --- a/resources/lib/plexbmc.py +++ b/resources/lib/plexbmc.py @@ -4048,6 +4048,8 @@ def start_plexbmc(): elif command == "switchuser": if switch_user(): clear_skin_sections() + clearOnDeckShelf() + clearShelf() WINDOW = xbmcgui.Window(10000) WINDOW.setProperty("plexbmc.plexhome_user" , str(plex_network.get_myplex_user())) WINDOW.setProperty("plexbmc.plexhome_avatar" , str(plex_network.get_myplex_avatar())) @@ -4068,8 +4070,10 @@ def start_plexbmc(): plex_network.signout() WINDOW = xbmcgui.Window(10000) WINDOW.clearProperty("plexbmc.plexhome_user" ) - WINDOW.clearProperty("plexbmc.plexhome_avatar" ) + WINDOW.clearProperty("plexbmc.plexhome_avatar" ) clear_skin_sections() + clearOnDeckShelf() + clearShelf() xbmc.executebuiltin("ReloadSkin()") elif command == "signin":