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

@ -160,6 +160,9 @@ mod imp {
pub(super) fixed_background_color: RefCell<Option<gdk::RGBA>>,
/// Animations disabled
pub(super) still: Cell<bool>,
/// Editor can be used on image
#[property(get)]
pub(super) editable: Cell<bool>,
/// Track changes to this image
pub(super) file_monitor: RefCell<Option<gio::FileMonitor>>,