Add loading indicator to search
This commit is contained in:
1 parent
ad54f89577
commit
1cc636b4d6
1 file changed
+2
@@ -108,6 +108,7 @@ function Search(text as string)
|
||||
m.searchTask.control = "stop"
|
||||
end if
|
||||
|
||||
m.global.loadingIndicator.visible = true
|
||||
m.searchTask = StartAsyncTask(SearchTask, {
|
||||
q: text
|
||||
}, OnSearchTaskResults)
|
||||
@@ -123,6 +124,7 @@ function OnSearchTaskResults(output as object)
|
||||
m.rowList.SetFocus(true)
|
||||
m.rowList.jumpToRowItem = [0, 0]
|
||||
ScrollDown()
|
||||
m.global.loadingIndicator.visible = false
|
||||
end function
|
||||
|
||||
function OnVisibilityChange()
|
||||
|
||||
Reference in new issue
Block a user