fix(desktop/general): Do not show loading icon for empty search text
Fix # 5197
This commit is contained in:
parent
30a6929b0d
commit
a0d5e9bca6
|
@ -62,8 +62,10 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearchTextChanged: {
|
onSearchTextChanged: {
|
||||||
searchPopup.loading = true
|
if (searchPopup.searchText !== "") {
|
||||||
searchMessages(searchPopup.searchText);
|
searchPopup.loading = true
|
||||||
|
searchMessages(searchPopup.searchText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onAboutToHide: {
|
onAboutToHide: {
|
||||||
if (searchPopupMenu.visible) {
|
if (searchPopupMenu.visible) {
|
||||||
|
|
Loading…
Reference in New Issue