editing: Only enable editing action if available

This commit is contained in:
Sophie Herold 2024-12-21 01:16:24 +01:00
parent dfe71a61fc
commit bbf9534bdd
7 changed files with 52 additions and 12 deletions

View file

@ -168,6 +168,12 @@ glib::wrapper! {
}
impl LpEditWindow {
pub const REQUIRED_OPERATIONS: &[glycin::OperationId] = &[
glycin::OperationId::Clip,
glycin::OperationId::MirrorHorizontally,
glycin::OperationId::Rotate,
];
pub fn new(image: LpImage) -> Self {
glib::Object::builder()
.property("original_image", image)