mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Added ability to hide layer for specific window controller.
This commit is contained in:
parent
3ebb9af8f8
commit
0f7b0c4227
2 changed files with 6 additions and 0 deletions
|
@ -1515,6 +1515,10 @@ QPointer<Ui::BoxContent> SessionController::show(
|
||||||
return _window->show(std::move(content), options, animated);
|
return _window->show(std::move(content), options, animated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SessionController::hideLayer(anim::type animated) {
|
||||||
|
show({ nullptr }, Ui::LayerOption::CloseOther, animated);
|
||||||
|
}
|
||||||
|
|
||||||
void SessionController::openPhoto(
|
void SessionController::openPhoto(
|
||||||
not_null<PhotoData*> photo,
|
not_null<PhotoData*> photo,
|
||||||
FullMsgId contextId) {
|
FullMsgId contextId) {
|
||||||
|
|
|
@ -296,6 +296,8 @@ public:
|
||||||
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
|
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
|
||||||
anim::type animated = anim::type::normal);
|
anim::type animated = anim::type::normal);
|
||||||
|
|
||||||
|
void hideLayer(anim::type animated = anim::type::normal);
|
||||||
|
|
||||||
[[nodiscard]] auto sendingAnimation() const
|
[[nodiscard]] auto sendingAnimation() const
|
||||||
-> Ui::MessageSendingAnimationController &;
|
-> Ui::MessageSendingAnimationController &;
|
||||||
[[nodiscard]] auto tabbedSelector() const
|
[[nodiscard]] auto tabbedSelector() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue