Fixed disappearing of chats filters strip in forward box after search.

This commit is contained in:
23rd 2024-11-13 11:03:10 +03:00
parent cf270bd9ce
commit f0f2a71a87

View file

@ -219,7 +219,9 @@ void PeerListBox::searchQueryChanged(const QString &query) {
scrollToY(0); scrollToY(0);
const auto isEmpty = content()->searchQueryChanged(query); const auto isEmpty = content()->searchQueryChanged(query);
if (_specialTabsMode.enabled) { if (_specialTabsMode.enabled) {
const auto was = _specialTabsMode.searchIsActive;
_specialTabsMode.searchIsActive = !isEmpty; _specialTabsMode.searchIsActive = !isEmpty;
if (was != _specialTabsMode.searchIsActive) {
if (_specialTabsMode.searchIsActive) { if (_specialTabsMode.searchIsActive) {
_specialTabsMode.topSkip = _addedTopScrollSkip; _specialTabsMode.topSkip = _addedTopScrollSkip;
setAddedTopScrollSkip(0); setAddedTopScrollSkip(0);
@ -227,6 +229,7 @@ void PeerListBox::searchQueryChanged(const QString &query) {
setAddedTopScrollSkip(_specialTabsMode.topSkip); setAddedTopScrollSkip(_specialTabsMode.topSkip);
} }
} }
}
} }
void PeerListBox::resizeEvent(QResizeEvent *e) { void PeerListBox::resizeEvent(QResizeEvent *e) {