drone
This commit is contained in:
parent
4dd9fe288e
commit
c123d0ad21
2 changed files with 8 additions and 1 deletions
6
.drone.yml
Normal file
6
.drone.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: rust:1.25.0
|
||||
commands:
|
||||
- cargo check
|
||||
- cargo build --release
|
|
@ -75,8 +75,9 @@ pub fn capture(options: Options) -> Result<(), Error> {
|
|||
match Clipboard::get_default(&display) {
|
||||
Some(clipboard) => {
|
||||
clipboard.set_image(&pixbuf);
|
||||
clipboard.store();
|
||||
}
|
||||
None => (),
|
||||
None => eprintln!("Failed to copy to the clipboard."),
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue