editing: Only enable editing action if available
This commit is contained in:
parent
dfe71a61fc
commit
bbf9534bdd
7 changed files with 52 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue