mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix focus jump to chats list on channel open.
This commit is contained in:
parent
55fd9c5091
commit
9d313d2827
2 changed files with 14 additions and 10 deletions
|
@ -2694,11 +2694,7 @@ void HistoryWidget::updateControlsVisibility() {
|
|||
if (_inlineResults) {
|
||||
_inlineResults->hide();
|
||||
}
|
||||
if (!_field->isHidden()) {
|
||||
_field->hide();
|
||||
updateControlsGeometry();
|
||||
update();
|
||||
}
|
||||
hideFieldIfVisible();
|
||||
} else if (editingMessage() || _canSendMessages) {
|
||||
checkFieldAutocomplete();
|
||||
_unblock->hide();
|
||||
|
@ -2807,16 +2803,23 @@ void HistoryWidget::updateControlsVisibility() {
|
|||
_inlineResults->hide();
|
||||
}
|
||||
_kbScroll->hide();
|
||||
if (!_field->isHidden()) {
|
||||
_field->hide();
|
||||
updateControlsGeometry();
|
||||
update();
|
||||
}
|
||||
hideFieldIfVisible();
|
||||
}
|
||||
//checkTabbedSelectorToggleTooltip();
|
||||
updateMouseTracking();
|
||||
}
|
||||
|
||||
void HistoryWidget::hideFieldIfVisible() {
|
||||
if (_field->isHidden()) {
|
||||
return;
|
||||
} else if (InFocusChain(_field)) {
|
||||
setFocus();
|
||||
}
|
||||
_field->hide();
|
||||
updateControlsGeometry();
|
||||
update();
|
||||
}
|
||||
|
||||
void HistoryWidget::showAboutTopPromotion() {
|
||||
Expects(_history != nullptr);
|
||||
Expects(_list != nullptr);
|
||||
|
|
|
@ -382,6 +382,7 @@ private:
|
|||
void setMembersShowAreaActive(bool active);
|
||||
void handleHistoryChange(not_null<const History*> history);
|
||||
void showAboutTopPromotion();
|
||||
void hideFieldIfVisible();
|
||||
void unreadCountUpdated();
|
||||
void closeCurrent();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue