mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Added method to Window::Controller to show custom layer widget.
This commit is contained in:
@@ -277,6 +277,13 @@ void Controller::showToast(const QString &text) {
|
||||
Ui::Toast::Show(_widget.bodyWidget(), text);
|
||||
}
|
||||
|
||||
void Controller::showLayer(
|
||||
std::unique_ptr<Ui::LayerWidget> &&layer,
|
||||
Ui::LayerOptions options,
|
||||
anim::type animated) {
|
||||
_widget.showLayer(std::move(layer), options, animated);
|
||||
}
|
||||
|
||||
void Controller::showBox(
|
||||
object_ptr<Ui::BoxContent> content,
|
||||
Ui::LayerOptions options,
|
||||
|
Reference in New Issue
Block a user