list: log clipboard copy errors and update notification message

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69649bdd37a44f254d520e33a54634958ada
This commit is contained in:
raf 2025-10-09 11:45:22 +03:00
commit f8440926b1
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -306,9 +306,10 @@ impl SqliteClipboardDb {
.show();
},
Err(e) => {
log::error!("Failed to copy entry to clipboard: {e}");
let _ = Notification::new()
.summary("Stash")
.body(&format!("Failed to copy entry: {e}"))
.body(&format!("Failed to copy to clipboard: {e}"))
.show();
},
}