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

Fix and improve back navigation with three columns.

This commit is contained in:
John Preston
2017-11-29 00:01:00 +04:00
parent 196ff7f4c1
commit 41b143cb7e
4 changed files with 60 additions and 13 deletions

View File

@@ -437,6 +437,9 @@ private:
void updateThirdColumnToCurrentPeer(
PeerData *peer,
bool canWrite);
[[nodiscard]] bool saveThirdSectionToStackBack() const;
[[nodiscard]] auto thirdSectionForCurrentMainSection(
not_null<PeerData*> peer) -> std::unique_ptr<Window::SectionMemento>;
void createPlayer();
void switchToPanelPlayer();
@@ -578,6 +581,7 @@ private:
object_ptr<HistoryWidget> _history;
object_ptr<Window::SectionWidget> _mainSection = { nullptr };
object_ptr<Window::SectionWidget> _thirdSection = { nullptr };
std::unique_ptr<Window::SectionMemento> _thirdSectionFromStack;
base::weak_unique_ptr<Calls::Call> _currentCall;
object_ptr<Ui::SlideWrap<Calls::TopBar>> _callTopBar = { nullptr };