fix(desktop/general): Do not show loading icon for empty search text

Fix # 5197
This commit is contained in:
Michal Iskierko 2022-03-28 13:54:32 +02:00 committed by Iuri Matias
parent 30a6929b0d
commit a0d5e9bca6
1 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,10 @@ Item {
}
onSearchTextChanged: {
searchPopup.loading = true
searchMessages(searchPopup.searchText);
if (searchPopup.searchText !== "") {
searchPopup.loading = true
searchMessages(searchPopup.searchText);
}
}
onAboutToHide: {
if (searchPopupMenu.visible) {