mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-05 23:01:19 +00:00
Don't toggle tabbed section from OneColumn.
This commit is contained in:
parent
26532ab9b4
commit
48cbdd9d40
@ -3784,7 +3784,8 @@ void HistoryWidget::pushInfoToThirdSection() {
|
||||
|
||||
void HistoryWidget::toggleTabbedSelectorMode() {
|
||||
if (_tabbedPanel) {
|
||||
if (controller()->canShowThirdSection()) {
|
||||
if (controller()->canShowThirdSection()
|
||||
&& !Adaptive::OneColumn()) {
|
||||
Auth().data().setTabbedSelectorSectionEnabled(true);
|
||||
Auth().saveDataDelayed(kSaveTabbedSelectorSectionTimeoutMs);
|
||||
pushTabbedSelectorToThirdSection();
|
||||
|
@ -162,7 +162,9 @@ void Controller::resizeForThirdSection() {
|
||||
Auth().data().setTabbedSelectorSectionEnabled(false);
|
||||
Auth().data().setThirdSectionInfoEnabled(false);
|
||||
|
||||
auto extendBy = st::columnMinimalWidthThird;
|
||||
auto extendBy = qMax(
|
||||
minimalThreeColumnWidth() - layout.bodyWidth,
|
||||
st::columnMinimalWidthThird);
|
||||
auto newBodyWidth = layout.bodyWidth + extendBy;
|
||||
dialogsWidthRatio().set(
|
||||
(dialogsWidthRatio().value() * layout.bodyWidth) / newBodyWidth,
|
||||
|
Loading…
Reference in New Issue
Block a user