Closed smailbarkouch closed 3 years ago
Bug description Its a very simple bug; if someone requests an image from the clipboard and there is no image, it will crash. When I read the documentation, it seems the second variable from the callback should be an option, but it isn't.
Clipboard::get(&gdk::SELECTION_CLIPBOARD).request_image(|_, pixbuf| { });
Backtrace
You're absolutely right.
I'll send a fix shortly.
Bug description Its a very simple bug; if someone requests an image from the clipboard and there is no image, it will crash. When I read the documentation, it seems the second variable from the callback should be an option, but it isn't.
Backtrace