Merge pull request #1316 from jimdogx/fix/update-comparisons

This commit is contained in:
Charles Ewert 2023-06-24 10:29:54 -04:00 committed by GitHub
commit e6cbb7bb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ sub loadInitialItems()
if m.sortField = invalid then m.sortField = "SortName"
if m.filter = invalid then m.filter = "All"
if sortAscendingStr = invalid or sortAscendingStr = "true"
if sortAscendingStr = invalid or sortAscendingStr = true
m.sortAscending = true
else
m.sortAscending = false

View File

@ -34,7 +34,7 @@ sub onPhotoLoaded()
photo = m.top.findNode("photo")
photo.uri = m.LoadLibrariesTask.results
if m.slideshow = "true" or m.random = "true"
if m.slideshow = true or m.random = true
' user has requested either a slideshow or random...
m.slideshowTimer.control = "start"
end if
@ -47,12 +47,12 @@ end sub
sub nextSlide()
m.slideshowTimer.control = "stop"
if m.slideshow = "true"
if m.slideshow = true
if isValidToContinue(m.top.itemIndex + 1)
m.top.itemIndex++
m.slideshowTimer.control = "start"
end if
else if m.random = "true"
else if m.random = true
index = rnd(m.top.items.content.getChildCount() - 1)
if isValidToContinue(index)
m.top.itemIndex = index
@ -100,7 +100,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
if m.textBackground.opacity = 0
m.showStatusAnimation.control = "start"
end if
m.slideshow = "true"
m.slideshow = true
m.statusTimer.control = "start"
m.slideshowTimer.control = "start"
end if