chore: fix copy/paste on linux

This commit is contained in:
reya
2025-07-02 15:53:52 +07:00
parent 2e046ec5d7
commit f9bf29df09
3 changed files with 19 additions and 18 deletions
-4
View File
@@ -527,11 +527,7 @@ impl Sidebar {
let item = ClipboardItem::new_string(public_key);
move |_, _, window, cx| {
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
cx.write_to_primary(item.clone());
#[cfg(any(target_os = "windows", target_os = "macos"))]
cx.write_to_clipboard(item.clone());
window.push_notification("User's NPUB is copied", cx);
}
})),