2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replaced callback for box showing with dedicated class in photo editor.

This commit is contained in:
23rd
2022-12-15 22:54:58 +03:00
committed by John Preston
parent 4518067f9c
commit a3a48a38c8
4 changed files with 8 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "editor/photo_editor_content.h"
#include "editor/photo_editor_controls.h"
#include "window/window_controller.h"
#include "window/window_session_controller.h"
#include "styles/style_editor.h"
namespace Editor {
@@ -59,7 +60,7 @@ PhotoEditor::PhotoEditor(
controller->sessionController())
: nullptr,
std::make_unique<UndoController>(),
[=] (object_ptr<Ui::BoxContent> c) { controller->show(std::move(c)); }))
std::make_shared<Window::Show>(controller)))
, _content(base::make_unique_q<PhotoEditorContent>(
this,
photo,