We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c679bc commit abe4f84Copy full SHA for abe4f84
src/Application.vala
@@ -68,10 +68,12 @@ public class Annotator : Gtk.Application {
68
Process.exit( 1 );
69
}
70
} else if( use_clipboard ) {
71
- if( !appwin.do_paste_image() ) {
72
- stderr.printf( _( "\nERROR: Image does not exist on the clipboard\n" ) );
73
- Process.exit( 1 );
74
- }
+ AnnotatorClipboard.get_clipboard().changed.connect(() => {
+ if( !appwin.do_paste_image() ) {
+ stderr.printf( _( "\nERROR: Image does not exist on the clipboard\n" ) );
+ Process.exit( 1 );
75
+ }
76
+ });
77
} else if( take_screenshot ) {
78
appwin.do_screenshot();
79
0 commit comments