Skip to content

Commit

Permalink
fix: pipeline fails
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Mar 10, 2024
1 parent 5b7d4dc commit 2de4b87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions crates/sss_lib/src/img.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@ pub fn generate_image(settings: GenerationSettings, content: impl DynImageConten
if settings.copy {
let mut c = arboard::Clipboard::new().unwrap();

let mut set = c.set();
#[cfg(target_os = "linux")]
{
set = set.clipboard(arboard::LinuxClipboardKind::Clipboard).wait();
}
let set = c.set().clipboard(arboard::LinuxClipboardKind::Clipboard).wait();
#[cfg(not(target_os = "linux"))]
let set = c.set();
set.image(arboard::ImageData {
width: img.width() as usize,
height: img.height() as usize,
Expand Down
2 changes: 1 addition & 1 deletion crates/sss_lib/src/out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn make_output(
)
.show()
.unwrap();
#[cfg(not(unix))]
#[cfg(all(target_os = "macos", target_os = "windows"))]
Notification::new()
.summary("Image generated")
.body(&format!("Image stored in {output}"))
Expand Down

0 comments on commit 2de4b87

Please sign in to comment.