2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Make dialogs filter onfocused by default.

This commit is contained in:
John Preston
2024-04-08 11:50:26 +04:00
parent dc438cff23
commit 2f03b9aa29
3 changed files with 89 additions and 78 deletions

View File

@@ -1893,12 +1893,8 @@ int SessionController::minimalThreeColumnWidth() const {
}
bool SessionController::forceWideDialogs() const {
if (_dialogsListDisplayForced.current()) {
return true;
} else if (_dialogsListFocused.current()) {
return true;
}
return !content()->isMainSectionShown();
return _dialogsListDisplayForced.current()
|| _dialogsListFocused.current();
}
auto SessionController::computeColumnLayout() const -> ColumnLayout {