mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix tabbed selector section / panel exchange.
This commit is contained in:
parent
f4d9618487
commit
6d0dbebda9
1 changed files with 3 additions and 1 deletions
|
@ -3771,17 +3771,18 @@ void HistoryWidget::pushTabbedSelectorToThirdSection() {
|
||||||
&st::historyRecordVoiceFgActive,
|
&st::historyRecordVoiceFgActive,
|
||||||
&st::historyRecordVoiceRippleBgActive);
|
&st::historyRecordVoiceRippleBgActive);
|
||||||
auto destroyingPanel = std::move(_tabbedPanel);
|
auto destroyingPanel = std::move(_tabbedPanel);
|
||||||
controller()->resizeForThirdSection();
|
|
||||||
auto memento = ChatHelpers::TabbedMemento(
|
auto memento = ChatHelpers::TabbedMemento(
|
||||||
destroyingPanel->takeSelector(),
|
destroyingPanel->takeSelector(),
|
||||||
base::lambda_guarded(this, [this](
|
base::lambda_guarded(this, [this](
|
||||||
object_ptr<TabbedSelector> selector) {
|
object_ptr<TabbedSelector> selector) {
|
||||||
returnTabbedSelector(std::move(selector));
|
returnTabbedSelector(std::move(selector));
|
||||||
}));
|
}));
|
||||||
|
controller()->resizeForThirdSection();
|
||||||
controller()->showSection(
|
controller()->showSection(
|
||||||
std::move(memento),
|
std::move(memento),
|
||||||
anim::type::instant,
|
anim::type::instant,
|
||||||
anim::activation::background);
|
anim::activation::background);
|
||||||
|
destroyingPanel.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::pushInfoToThirdSection() {
|
void HistoryWidget::pushInfoToThirdSection() {
|
||||||
|
@ -3819,6 +3820,7 @@ void HistoryWidget::returnTabbedSelector(
|
||||||
_tabbedSelectorToggle->installEventFilter(_tabbedPanel);
|
_tabbedSelectorToggle->installEventFilter(_tabbedPanel);
|
||||||
_tabbedSelectorToggle->setColorOverrides(nullptr, nullptr, nullptr);
|
_tabbedSelectorToggle->setColorOverrides(nullptr, nullptr, nullptr);
|
||||||
_tabbedSelectorToggleTooltipShown = false;
|
_tabbedSelectorToggleTooltipShown = false;
|
||||||
|
moveFieldControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::recountChatWidth() {
|
void HistoryWidget::recountChatWidth() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue