mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Don't jump with focus to chats list.
This commit is contained in:
parent
fc4682d77e
commit
d8a0497a7e
1 changed files with 5 additions and 1 deletions
|
@ -2086,7 +2086,7 @@ void HistoryWidget::showHistory(
|
|||
|
||||
_cornerButtons.clearReplyReturns();
|
||||
if (_history) {
|
||||
if (Ui::InFocusChain(_list)) {
|
||||
if (Ui::InFocusChain(this)) {
|
||||
// Removing focus from list clears selected and updates top bar.
|
||||
setFocus();
|
||||
}
|
||||
|
@ -3670,6 +3670,10 @@ void HistoryWidget::saveEditMsg() {
|
|||
}
|
||||
|
||||
void HistoryWidget::hideChildWidgets() {
|
||||
if (Ui::InFocusChain(this)) {
|
||||
// Removing focus from list clears selected and updates top bar.
|
||||
setFocus();
|
||||
}
|
||||
if (_tabbedPanel) {
|
||||
_tabbedPanel->hideFast();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue