mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
if (_inlineResults) {
|
||||||
_inlineResults->hide();
|
_inlineResults->hide();
|
||||||
}
|
}
|
||||||
if (!_field->isHidden()) {
|
hideFieldIfVisible();
|
||||||
_field->hide();
|
|
||||||
updateControlsGeometry();
|
|
||||||
update();
|
|
||||||
}
|
|
||||||
} else if (editingMessage() || _canSendMessages) {
|
} else if (editingMessage() || _canSendMessages) {
|
||||||
checkFieldAutocomplete();
|
checkFieldAutocomplete();
|
||||||
_unblock->hide();
|
_unblock->hide();
|
||||||
|
@ -2807,16 +2803,23 @@ void HistoryWidget::updateControlsVisibility() {
|
||||||
_inlineResults->hide();
|
_inlineResults->hide();
|
||||||
}
|
}
|
||||||
_kbScroll->hide();
|
_kbScroll->hide();
|
||||||
if (!_field->isHidden()) {
|
hideFieldIfVisible();
|
||||||
_field->hide();
|
|
||||||
updateControlsGeometry();
|
|
||||||
update();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//checkTabbedSelectorToggleTooltip();
|
//checkTabbedSelectorToggleTooltip();
|
||||||
updateMouseTracking();
|
updateMouseTracking();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HistoryWidget::hideFieldIfVisible() {
|
||||||
|
if (_field->isHidden()) {
|
||||||
|
return;
|
||||||
|
} else if (InFocusChain(_field)) {
|
||||||
|
setFocus();
|
||||||
|
}
|
||||||
|
_field->hide();
|
||||||
|
updateControlsGeometry();
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
void HistoryWidget::showAboutTopPromotion() {
|
void HistoryWidget::showAboutTopPromotion() {
|
||||||
Expects(_history != nullptr);
|
Expects(_history != nullptr);
|
||||||
Expects(_list != nullptr);
|
Expects(_list != nullptr);
|
||||||
|
|
|
@ -382,6 +382,7 @@ private:
|
||||||
void setMembersShowAreaActive(bool active);
|
void setMembersShowAreaActive(bool active);
|
||||||
void handleHistoryChange(not_null<const History*> history);
|
void handleHistoryChange(not_null<const History*> history);
|
||||||
void showAboutTopPromotion();
|
void showAboutTopPromotion();
|
||||||
|
void hideFieldIfVisible();
|
||||||
void unreadCountUpdated();
|
void unreadCountUpdated();
|
||||||
void closeCurrent();
|
void closeCurrent();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue