mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
parent
ddad42d80e
commit
c693fcb2b0
1 changed files with 8 additions and 2 deletions
|
@ -2153,7 +2153,11 @@ void MainWidget::updateControlsGeometry() {
|
||||||
const auto active = _controller->activeChatCurrent();
|
const auto active = _controller->activeChatCurrent();
|
||||||
if (const auto peer = active.peer()) {
|
if (const auto peer = active.peer()) {
|
||||||
if (Core::App().settings().tabbedSelectorSectionEnabled()) {
|
if (Core::App().settings().tabbedSelectorSectionEnabled()) {
|
||||||
_history->pushTabbedSelectorToThirdSection(peer, params);
|
if (_mainSection) {
|
||||||
|
_mainSection->pushTabbedSelectorToThirdSection(peer, params);
|
||||||
|
} else {
|
||||||
|
_history->pushTabbedSelectorToThirdSection(peer, params);
|
||||||
|
}
|
||||||
} else if (Core::App().settings().thirdSectionInfoEnabled()) {
|
} else if (Core::App().settings().thirdSectionInfoEnabled()) {
|
||||||
_controller->showSection(
|
_controller->showSection(
|
||||||
Info::Memento::Default(peer),
|
Info::Memento::Default(peer),
|
||||||
|
@ -2412,7 +2416,9 @@ void MainWidget::updateThirdColumnToCurrentChat(
|
||||||
};
|
};
|
||||||
auto switchTabbedFast = [&](not_null<PeerData*> peer) {
|
auto switchTabbedFast = [&](not_null<PeerData*> peer) {
|
||||||
saveOldThirdSection();
|
saveOldThirdSection();
|
||||||
return _history->pushTabbedSelectorToThirdSection(peer, params);
|
return _mainSection
|
||||||
|
? _mainSection->pushTabbedSelectorToThirdSection(peer, params)
|
||||||
|
: _history->pushTabbedSelectorToThirdSection(peer, params);
|
||||||
};
|
};
|
||||||
if (Adaptive::ThreeColumn()
|
if (Adaptive::ThreeColumn()
|
||||||
&& settings.tabbedSelectorSectionEnabled()
|
&& settings.tabbedSelectorSectionEnabled()
|
||||||
|
|
Loading…
Add table
Reference in a new issue