diff --git a/src/widgets/image_window.rs b/src/widgets/image_window.rs index 4cf0fd7..52ca719 100644 --- a/src/widgets/image_window.rs +++ b/src/widgets/image_window.rs @@ -776,7 +776,10 @@ impl LpImageWindow { gdk::ContentProvider::for_value(&texture.to_value()); if let Err(e) = self.clipboard().set_content(Some(&content)) { tracing::error!("Failed to copy annotated image: {e}"); - } else { + } else if !LpApplication::default() + .settings() + .boolean("auto-copy-annotations") + { self.window_show_toast( &gettext("Image copied to clipboard"), adw::ToastPriority::High, @@ -789,7 +792,10 @@ impl LpImageWindow { if let Err(e) = imp.image_view.copy() { tracing::error!("Failed to copy to clipboard: {}", e); - } else { + } else if !LpApplication::default() + .settings() + .boolean("auto-copy-annotations") + { self.window_show_toast( &gettext("Image copied to clipboard"), adw::ToastPriority::High,