Fix search input not in the end of the query.

This commit is contained in:
John Preston 2024-06-01 20:39:31 +04:00
parent e9e347fa6c
commit 59c016e4ce
1 changed files with 3 additions and 1 deletions

View File

@ -3005,7 +3005,9 @@ bool Widget::applySearchState(SearchState state) {
controller()->closeFolder();
}
setSearchQuery(_searchState.query);
if (_searchState.query != currentSearchQuery()) {
setSearchQuery(_searchState.query);
}
_inner->applySearchState(_searchState);
if (!_postponeProcessSearchFocusChange) {