2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Show third column only when explicitly requested.

This allows you to show info in layer from mention links.
This commit is contained in:
John Preston
2017-12-04 11:33:33 +04:00
parent 629c216a7f
commit e1c68892d4
23 changed files with 184 additions and 120 deletions

View File

@@ -3887,7 +3887,7 @@ void HistoryWidget::pushTabbedSelectorToThirdSection(
return;
} else if (!_canSendMessages) {
Auth().data().setTabbedReplacedWithInfo(true);
controller()->showPeerInfo(_peer, params);
controller()->showPeerInfo(_peer, params.withThirdColumn());
return;
}
Auth().data().setTabbedReplacedWithInfo(false);
@@ -3903,7 +3903,7 @@ void HistoryWidget::pushTabbedSelectorToThirdSection(
returnTabbedSelector(std::move(selector));
}));
controller()->resizeForThirdSection();
controller()->showSection(std::move(memento), params);
controller()->showSection(std::move(memento), params.withThirdColumn());
destroyingPanel.destroy();
}
@@ -3912,7 +3912,7 @@ void HistoryWidget::pushInfoToThirdSection(
if (!_peer) {
return;
}
controller()->showPeerInfo(_peer, params);
controller()->showPeerInfo(_peer, params.withThirdColumn());
}
void HistoryWidget::toggleTabbedSelectorMode() {