2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Removed width calculation of dialogs list when this list is disabled.

This commit is contained in:
23rd
2022-02-20 11:38:07 +03:00
committed by John Preston
parent 9bc48f4aba
commit e8a5ddad37

View File

@@ -2589,7 +2589,9 @@ void MainWidget::updateWindowAdaptiveLayout() {
auto useSmallColumnWidth = !isOneColumn()
&& !dialogsWidthRatio
&& !_controller->forceWideDialogs();
_dialogsWidth = useSmallColumnWidth
_dialogsWidth = !_dialogs
? 0
: useSmallColumnWidth
? _controller->dialogsSmallColumnWidth()
: layout.dialogsWidth;
_thirdColumnWidth = layout.thirdWidth;