window: Add copy button to top left
Allan Day's latest mockups put a copy button in the top left of the window. This commits adds the button and the toast along with it.
This commit is contained in:
parent
fadb6bfb9b
commit
689f975bf0
2 changed files with 12 additions and 0 deletions
|
|
@ -312,6 +312,11 @@ impl LpWindow {
|
|||
|
||||
if let Err(e) = imp.image_view.copy() {
|
||||
log::error!("Failed to copy to clipboard: {}", e);
|
||||
} else {
|
||||
self.show_toast(
|
||||
&"Image copied to clipboard".to_string(),
|
||||
adw::ToastPriority::High,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue