fix(@desktop/search): search popup UI breaks when clearing the input field
Fixes #5138
This commit is contained in:
parent
33216d5bb5
commit
da22517138
|
@ -143,6 +143,7 @@ method getSearchLocationObject*(self: Module): string =
|
||||||
method searchMessages*(self: Module, searchTerm: string) =
|
method searchMessages*(self: Module, searchTerm: string) =
|
||||||
if (searchTerm.len == 0):
|
if (searchTerm.len == 0):
|
||||||
self.view.searchResultModel().clear()
|
self.view.searchResultModel().clear()
|
||||||
|
self.view.emitAppSearchCompletedSignal()
|
||||||
return
|
return
|
||||||
|
|
||||||
self.controller.searchMessages(searchTerm)
|
self.controller.searchMessages(searchTerm)
|
||||||
|
|
Loading…
Reference in New Issue