mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix cancel search button overlap.
This commit is contained in:
parent
331e8c3ec6
commit
493f1d69e2
1 changed files with 8 additions and 6 deletions
|
@ -2575,9 +2575,9 @@ void Widget::listScrollUpdated() {
|
|||
}
|
||||
|
||||
void Widget::updateCancelSearch() {
|
||||
const auto shown = _searchHasFocus
|
||||
|| _searchSuggestionsLocked
|
||||
|| !_search->getLastText().isEmpty();
|
||||
const auto shown = !_search->getLastText().isEmpty()
|
||||
|| (!_searchInChat
|
||||
&& (_searchHasFocus || _searchSuggestionsLocked));
|
||||
_cancelSearch->toggle(shown, anim::type::normal);
|
||||
}
|
||||
|
||||
|
@ -2970,12 +2970,14 @@ void Widget::updateLockUnlockVisibility(anim::type animated) {
|
|||
return;
|
||||
}
|
||||
const auto hidden = !session().domain().local().hasLocalPasscode()
|
||||
|| (_showAnimation != nullptr)
|
||||
|| _showAnimation
|
||||
|| _openedForum
|
||||
|| !_widthAnimationCache.isNull()
|
||||
|| _childList
|
||||
|| !_search->getLastText().isEmpty()
|
||||
|| _searchInChat;
|
||||
|| _searchHasFocus
|
||||
|| _searchSuggestionsLocked
|
||||
|| _searchInChat
|
||||
|| !_search->getLastText().isEmpty();
|
||||
if (_lockUnlock->toggled() == hidden) {
|
||||
const auto stories = _stories && !_stories->empty();
|
||||
_lockUnlock->toggle(
|
||||
|
|
Loading…
Add table
Reference in a new issue