Skip to content

Commit

Permalink
Merge pull request #155 from marcelveldt/master
Browse files Browse the repository at this point in the history
remove default Library.HasContent visibility checks for main music and musicvideos node
  • Loading branch information
BobCratchett committed Feb 23, 2016
2 parents 7ff4b8a + 53db73b commit d4b41cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
18 changes: 0 additions & 18 deletions resources/lib/datafunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,24 +778,6 @@ def checkVisibility ( self, action ):
path[ 1 ] = path[ 1 ][:-1]
return NODE.get_visibility( path[ 1 ] )

# Isengard and earlier music library
elif action.startswith( "activatewindow(musiclibrary,addons" ):
return ""
elif action.startswith( "activatewindow(musiclibrary,musicvideo" ):
return "Library.HasContent(MusicVideos)"
elif action.startswith( "activatewindow(musiclibrary," ):
return "Library.HasContent(Music)"

# Jarvis and later music library
elif action.startswith( "activatewindow(music,addons" ) or action.startswith( "activatewindow(music,files" ):
return ""
elif action.startswith( "activatewindow(music,musicvideo" ):
return "Library.HasContent(MusicVideos)"
elif action == "activatewindow(music)" or action.startswith( "activatewindow(music,root" ):
return ""
elif action.startswith( "activatewindow(music,"):
return "Library.HasContent(Music)"

# Power menu visibilities
elif action == "quit()" or action == "quit":
return "System.ShowExitButton"
Expand Down
6 changes: 0 additions & 6 deletions resources/lib/xmlfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ def shouldwerun( self, profilelist ):
if profilelist != hash[1]:
log( "Profiles have changes" )
return True
elif hash[0] == "::MUSICCONTENT::":
# Check if Library.HasContent(Music) has changed
if xbmc.getCondVisibility( "Library.HasContent(Music)" ) != hash[1]:
log( "Whether there is music in the library has changed" )
elif hash[0] == "::HIDEPVR::":
checkedPVRVis = True
if __addon__.getSetting( "donthidepvr" ) != hash[1]:
Expand Down Expand Up @@ -307,8 +303,6 @@ def writexml( self, profilelist, mainmenuID, groups, numLevels, buildMode, progr
hashlist.list.append( ["::PROFILELIST::", profilelist] )
hashlist.list.append( ["::SCRIPTVER::", __addonversion__] )
hashlist.list.append( ["::XBMCVER::", __xbmcversion__] )
if int( __xbmcversion__ ) <= 15:
hashlist.list.append( ["::MUSICCONTENT::", xbmc.getCondVisibility( "Library.HasContent(Music)" ) ] )
hashlist.list.append( ["::HIDEPVR::", __addon__.getSetting( "donthidepvr" )] )
hashlist.list.append( ["::SHARED::", __addon__.getSetting( "shared_menu" )] )
hashlist.list.append( ["::SKINDIR::", xbmc.getSkinDir()] )
Expand Down

0 comments on commit d4b41cf

Please sign in to comment.