Skip to content

Commit

Permalink
Merge pull request #36 from Ignoble61/build-rewrite
Browse files Browse the repository at this point in the history
Fix bugs introduced in speed-improvement changes
  • Loading branch information
marcelveldt committed Aug 8, 2015
2 parents 1b4ffef + 309aae1 commit 1f1179e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/lib/xmlfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,15 @@ def writexml( self, profilelist, mainmenuID, groups, numLevels, buildMode, progr

menuitemCopy = copy.deepcopy( menuitem )
visibilityElement = menuitemCopy.find( "visible" )
visibilityElement.text += " + [%s]" %( "StringCompare(Window(10000).Property(submenuVisibility)," + DATA.slugify( submenuVisibilityName, convertInteger=True ) + ")" )
visibilityElement.text = "[%s] + %s" %( visibilityElement.text, "StringCompare(Window(10000).Property(submenuVisibility)," + DATA.slugify( submenuVisibilityName, convertInteger=True ) + ")" )
justmenuTreeB.append( menuitemCopy )

if buildMode == "single":
submenu.append( copy.deepcopy( menuitemCopy ) )
allmenuTree.append( copy.deepcopy( menuitemCopy ) )

menuitemCopy = copy.deepcopy( menuitem )
visibilityElement = menuitemCopy.find( "visible" )
visibilityElement.text += " + [%s]" %( "StringCompare(Container(" + mainmenuID + ").ListItem.Property(submenuVisibility)," + DATA.slugify( submenuVisibilityName, convertInteger=True ) + ")" )
visibilityElement.text = "[%s] + %s" %( visibilityElement.text, "StringCompare(Container(" + mainmenuID + ").ListItem.Property(submenuVisibility)," + DATA.slugify( submenuVisibilityName, convertInteger=True ) + ")" )
submenuTree.append( menuitemCopy )

# Build the template for the submenu
Expand Down

0 comments on commit 1f1179e

Please sign in to comment.