2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Create dialogs widget only in the primary window.

This commit is contained in:
John Preston
2022-01-04 16:13:00 +03:00
parent 8b0725650d
commit 54247cd11b
8 changed files with 181 additions and 102 deletions

View File

@@ -749,13 +749,13 @@ void Widget::escape() {
controller()->closeFolder();
} else if (!onCancelSearch()) {
if (controller()->activeChatEntryCurrent().key) {
cancelled();
controller()->content()->dialogsCancelled();
} else if (controller()->activeChatsFilterCurrent()) {
controller()->setActiveChatsFilter(FilterId(0));
}
} else if (!_searchInChat && !controller()->selectingPeer()) {
if (controller()->activeChatEntryCurrent().key) {
cancelled();
controller()->content()->dialogsCancelled();
}
}
}
@@ -1808,7 +1808,7 @@ void Widget::onCancelSearchInChat() {
}
applyFilterUpdate(true);
if (!isOneColumn && !controller()->selectingPeer()) {
cancelled();
controller()->content()->dialogsCancelled();
}
}