mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix emoji panel section appearance in topics.
This commit is contained in:
parent
3fad69d3c8
commit
187f5fa4f3
1 changed files with 9 additions and 7 deletions
|
@ -1816,9 +1816,17 @@ void MainWidget::showNewSection(
|
|||
updateControlsGeometry();
|
||||
} else {
|
||||
_mainSection = std::move(newMainSection);
|
||||
updateControlsGeometry();
|
||||
_history->finishAnimating();
|
||||
_history->showHistory(0, 0);
|
||||
|
||||
if (const auto entry = _mainSection->activeChat(); entry.key) {
|
||||
_controller->setActiveChatEntry(entry);
|
||||
}
|
||||
|
||||
// Depends on SessionController::activeChatEntry
|
||||
// for tabbed selector showing in the third column.
|
||||
updateControlsGeometry();
|
||||
|
||||
_history->hide();
|
||||
if (isOneColumn() && _dialogs) {
|
||||
_dialogs->hide();
|
||||
|
@ -1838,12 +1846,6 @@ void MainWidget::showNewSection(
|
|||
settingSection->showFast();
|
||||
}
|
||||
|
||||
if (settingSection.data() == _mainSection.data()) {
|
||||
if (const auto entry = _mainSection->activeChat(); entry.key) {
|
||||
_controller->setActiveChatEntry(entry);
|
||||
}
|
||||
}
|
||||
|
||||
floatPlayerCheckVisibility();
|
||||
orderWidgets();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue