Skip to content

Commit

Permalink
fix(clipboard): fix clipboard on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Jun 25, 2024
1 parent ad2626c commit f41e356
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/clip.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use arboard::{Clipboard, GetExtLinux, LinuxClipboardKind, SetExtLinux};
#[cfg(target_os = "linux")]
use arboard::{GetExtLinux, LinuxClipboardKind, SetExtLinux as _};

use arboard::Clipboard;
use base64::Engine;
use serde::{Deserialize, Serialize};

Expand All @@ -12,6 +15,7 @@ pub enum Selection {
Secondary,
}

#[cfg(target_os = "linux")]
impl Selection {
fn get_kind(&self) -> LinuxClipboardKind {
match self {
Expand Down

0 comments on commit f41e356

Please sign in to comment.