mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
_cornerButtons.clearReplyReturns();
|
||||||
if (_history) {
|
if (_history) {
|
||||||
if (Ui::InFocusChain(_list)) {
|
if (Ui::InFocusChain(this)) {
|
||||||
// Removing focus from list clears selected and updates top bar.
|
// Removing focus from list clears selected and updates top bar.
|
||||||
setFocus();
|
setFocus();
|
||||||
}
|
}
|
||||||
|
@ -3670,6 +3670,10 @@ void HistoryWidget::saveEditMsg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::hideChildWidgets() {
|
void HistoryWidget::hideChildWidgets() {
|
||||||
|
if (Ui::InFocusChain(this)) {
|
||||||
|
// Removing focus from list clears selected and updates top bar.
|
||||||
|
setFocus();
|
||||||
|
}
|
||||||
if (_tabbedPanel) {
|
if (_tabbedPanel) {
|
||||||
_tabbedPanel->hideFast();
|
_tabbedPanel->hideFast();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue