mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Use layers and boxes from lib_ui.
This commit is contained in:
@@ -74,13 +74,13 @@ void SuggestPhoto(
|
||||
|| badAspect(image.height(), image.width())) {
|
||||
Ui::show(
|
||||
Box<InformBox>(tr::lng_bad_photo(tr::now)),
|
||||
LayerOption::KeepOther);
|
||||
Ui::LayerOption::KeepOther);
|
||||
return;
|
||||
}
|
||||
|
||||
const auto box = Ui::show(
|
||||
Box<PhotoCropBox>(image, title),
|
||||
LayerOption::KeepOther);
|
||||
Ui::LayerOption::KeepOther);
|
||||
box->ready(
|
||||
) | rpl::start_with_next(
|
||||
std::forward<Callback>(callback),
|
||||
|
Reference in New Issue
Block a user