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

Save admin log state to memento and restore it.

This commit is contained in:
John Preston
2017-06-24 20:05:32 +03:00
parent 85e234938d
commit 0a9db8533b
17 changed files with 152 additions and 108 deletions

View File

@@ -215,7 +215,7 @@ public:
int backgroundFromY() const;
PeerData *overviewPeer();
bool showMediaTypeSwitch() const;
void showWideSection(const Window::SectionMemento &memento);
void showWideSection(Window::SectionMemento &&memento);
void showMediaOverview(PeerData *peer, MediaOverviewType type, bool back = false, int32 lastScrollTop = -1);
bool stackIsEmpty() const;
void showBackFromStack();
@@ -521,7 +521,7 @@ private:
void mediaOverviewUpdated(const Notify::PeerUpdate &update);
Window::SectionSlideParams prepareShowAnimation(bool willHaveTopBarShadow, bool willHaveTabbedSection);
void showNewWideSection(const Window::SectionMemento *memento, bool back, bool saveInStack);
void showNewWideSection(Window::SectionMemento &&memento, bool back, bool saveInStack);
// All this methods use the prepareShowAnimation().
Window::SectionSlideParams prepareWideSectionAnimation(Window::SectionWidget *section);