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:
Christopher Davis 2022-07-01 13:08:14 -04:00
parent fadb6bfb9b
commit 689f975bf0
2 changed files with 12 additions and 0 deletions

View file

@ -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,
);
}
}