fix(@desktop/search): search popup UI breaks when clearing the input field

Fixes #5138
This commit is contained in:
Sale Djenic 2022-03-25 15:24:20 +01:00 committed by Iuri Matias
parent 33216d5bb5
commit da22517138
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ method getSearchLocationObject*(self: Module): string =
method searchMessages*(self: Module, searchTerm: string) =
if (searchTerm.len == 0):
self.view.searchResultModel().clear()
self.view.emitAppSearchCompletedSignal()
return
self.controller.searchMessages(searchTerm)