mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added ability to hide layer for specific window controller.
This commit is contained in:
@@ -1515,6 +1515,10 @@ QPointer<Ui::BoxContent> SessionController::show(
|
||||
return _window->show(std::move(content), options, animated);
|
||||
}
|
||||
|
||||
void SessionController::hideLayer(anim::type animated) {
|
||||
show({ nullptr }, Ui::LayerOption::CloseOther, animated);
|
||||
}
|
||||
|
||||
void SessionController::openPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId contextId) {
|
||||
|
||||
@@ -296,6 +296,8 @@ public:
|
||||
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
|
||||
anim::type animated = anim::type::normal);
|
||||
|
||||
void hideLayer(anim::type animated = anim::type::normal);
|
||||
|
||||
[[nodiscard]] auto sendingAnimation() const
|
||||
-> Ui::MessageSendingAnimationController &;
|
||||
[[nodiscard]] auto tabbedSelector() const
|
||||
|
||||
Reference in New Issue
Block a user