Silence copy toast during automatic copying

This commit is contained in:
rope 2026-09-19 09:59:02 +01:00
parent 6477f8b500
commit 3eaaae6847

View file

@ -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,