edit/crop: Apply crop via checkmark overlay

This commit is contained in:
Sophie Herold 2025-01-22 22:19:10 +01:00
parent 40d425ac80
commit 9a5170de34
6 changed files with 62 additions and 26 deletions

View file

@ -71,8 +71,6 @@ mod imp {
image: TemplateChild<LpImage>,
#[template_child]
pub(super) selection: TemplateChild<LpEditCropSelection>,
#[template_child]
pub apply_crop: TemplateChild<gtk::Button>,
#[property(get, set, builder(LpAspectRatio::default()))]
aspect_ratio: Cell<LpAspectRatio>,
@ -229,9 +227,6 @@ mod imp {
self.crop_area_image_coord.replace(crop_area_image_coord);
}
let apply_sensitive = self.cropped();
self.apply_crop.set_visible(apply_sensitive);
self.obj().notify_cropped();
}