mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix showing forum in a single-column layout.
This commit is contained in:
parent
371ba40a50
commit
bd8b90055e
2 changed files with 6 additions and 4 deletions
|
@ -716,19 +716,18 @@ void Widget::changeOpenedSubsection(
|
||||||
FnMut<void()> change,
|
FnMut<void()> change,
|
||||||
bool fromRight,
|
bool fromRight,
|
||||||
anim::type animated) {
|
anim::type animated) {
|
||||||
_a_show.stop();
|
|
||||||
|
|
||||||
if (isHidden()) {
|
if (isHidden()) {
|
||||||
animated = anim::type::instant;
|
animated = anim::type::instant;
|
||||||
}
|
}
|
||||||
if (animated == anim::type::normal) {
|
if (animated == anim::type::normal) {
|
||||||
|
_connecting->setForceHidden(true);
|
||||||
|
_cacheUnder = grabForFolderSlideAnimation();
|
||||||
_showDirection = fromRight
|
_showDirection = fromRight
|
||||||
? Window::SlideDirection::FromRight
|
? Window::SlideDirection::FromRight
|
||||||
: Window::SlideDirection::FromLeft;
|
: Window::SlideDirection::FromLeft;
|
||||||
_showAnimationType = ShowAnimation::Internal;
|
_showAnimationType = ShowAnimation::Internal;
|
||||||
_connecting->setForceHidden(true);
|
|
||||||
_cacheUnder = grabForFolderSlideAnimation();
|
|
||||||
}
|
}
|
||||||
|
_a_show.stop();
|
||||||
change();
|
change();
|
||||||
refreshTopBars();
|
refreshTopBars();
|
||||||
updateControlsVisibility(true);
|
updateControlsVisibility(true);
|
||||||
|
|
|
@ -983,6 +983,9 @@ void SessionController::openForum(
|
||||||
if (_openedForum.current() != forum) {
|
if (_openedForum.current() != forum) {
|
||||||
resetFakeUnreadWhileOpened();
|
resetFakeUnreadWhileOpened();
|
||||||
}
|
}
|
||||||
|
if (forum && _activeChatEntry.current().key.peer()) {
|
||||||
|
clearSectionStack(params);
|
||||||
|
}
|
||||||
_openedForum = forum.get();
|
_openedForum = forum.get();
|
||||||
if (_openedForum.current() == forum) {
|
if (_openedForum.current() == forum) {
|
||||||
forum->forum()->destroyed(
|
forum->forum()->destroyed(
|
||||||
|
|
Loading…
Add table
Reference in a new issue