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

Save section expand state in Info memento.

This commit is contained in:
John Preston
2017-10-03 18:41:44 +01:00
parent c6c75a1980
commit 76b8078bd9
21 changed files with 196 additions and 68 deletions

View File

@@ -59,7 +59,7 @@ void SectionWidget::showAnimated(
showChildren();
auto myContentCache = grabForShowAnimation(params);
hideChildren();
showAnimatedHook();
showAnimatedHook(params);
_showAnimation = std::make_unique<SlideAnimation>();
_showAnimation->setDirection(direction);
@@ -69,6 +69,7 @@ void SectionWidget::showAnimated(
params.oldContentCache,
myContentCache);
_showAnimation->setTopBarShadow(params.withTopBarShadow);
_showAnimation->setWithFade(params.withFade);
_showAnimation->start();
show();