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"
|
m.searchTask.control = "stop"
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
m.global.loadingIndicator.visible = true
|
||||||
m.searchTask = StartAsyncTask(SearchTask, {
|
m.searchTask = StartAsyncTask(SearchTask, {
|
||||||
q: text
|
q: text
|
||||||
}, OnSearchTaskResults)
|
}, OnSearchTaskResults)
|
||||||
@@ -123,6 +124,7 @@ function OnSearchTaskResults(output as object)
|
|||||||
m.rowList.SetFocus(true)
|
m.rowList.SetFocus(true)
|
||||||
m.rowList.jumpToRowItem = [0, 0]
|
m.rowList.jumpToRowItem = [0, 0]
|
||||||
ScrollDown()
|
ScrollDown()
|
||||||
|
m.global.loadingIndicator.visible = false
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnVisibilityChange()
|
function OnVisibilityChange()
|
||||||
|
|||||||
Reference in new issue
Block a user