fix lazy loading itemgrid spinner

This commit is contained in:
Charles Ewert 2023-12-04 09:21:21 -05:00
parent b0b6f2076a
commit edfb820039
3 changed files with 7 additions and 4 deletions

View File

@ -569,8 +569,9 @@ end sub
'
'Load next set of items
sub loadMoreData()
startLoadingSpinner(false)
if m.Loading = true then return
startLoadingSpinner(false)
m.Loading = true
m.loadItemsTask.startIndex = m.loadedItems
m.loadItemsTask.observeField("content", "ItemDataLoaded")

View File

@ -687,8 +687,9 @@ end sub
'
'Load next set of items
sub loadMoreData()
startLoadingSpinner(false)
if m.Loading = true then return
startLoadingSpinner(false)
m.Loading = true
m.loadItemsTask.startIndex = m.loadedItems
m.loadItemsTask.observeField("content", "ItemDataLoaded")

View File

@ -108,7 +108,7 @@ end sub
'Load initial set of Data
sub loadInitialItems()
m.loadItemsTask.control = "stop"
startLoadingSpinner()
startLoadingSpinner(false)
if LCase(m.top.parentItem.json.Type) = "collectionfolder"
m.top.HomeLibraryItem = m.top.parentItem.Id
@ -550,8 +550,9 @@ end sub
'
'Load next set of items
sub loadMoreData()
startLoadingSpinner(false)
if m.Loading = true then return
startLoadingSpinner(false)
m.Loading = true
m.loadItemsTask.startIndex = m.loadedItems
m.loadItemsTask.observeField("content", "ItemDataLoaded")