Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
clear shelf items on signout/switch
Browse files Browse the repository at this point in the history
  • Loading branch information
hippojay committed May 5, 2015
1 parent 6b87789 commit 89eb9bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/lib/plexbmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand All @@ -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":
Expand Down

0 comments on commit 89eb9bc

Please sign in to comment.