Skip to content

Commit

Permalink
Fixing issues with --use-clipboard option
Browse files Browse the repository at this point in the history
  • Loading branch information
phase1geo committed Oct 11, 2024
1 parent 6c679bc commit abe4f84
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public class Annotator : Gtk.Application {
Process.exit( 1 );
}
} else if( use_clipboard ) {
if( !appwin.do_paste_image() ) {
stderr.printf( _( "\nERROR: Image does not exist on the clipboard\n" ) );
Process.exit( 1 );
}
AnnotatorClipboard.get_clipboard().changed.connect(() => {
if( !appwin.do_paste_image() ) {
stderr.printf( _( "\nERROR: Image does not exist on the clipboard\n" ) );
Process.exit( 1 );
}
});
} else if( take_screenshot ) {
appwin.do_screenshot();
}
Expand Down

0 comments on commit abe4f84

Please sign in to comment.