Silence copy toast during automatic copying
This commit is contained in:
parent
6477f8b500
commit
3eaaae6847
1 changed files with 8 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue