image: Use FileList in ContentProvider

Makes dragging an image out of Loupe work in most cases.
There seems to be an issue with dragging from flatpak to host.
Removing the png from the provider seems to avoid gdk crashes
but not 100% sure that was the cause.
This commit is contained in:
Sophie Herold 2022-11-28 18:27:40 +01:00
parent b202c1d2d2
commit d6ab100062
3 changed files with 6 additions and 18 deletions

View file

@ -126,7 +126,7 @@ mod imp {
gesture.set_state(gtk::EventSequenceState::Denied);
None
} else {
obj.current_page().map(|p| p.content_provider())
obj.current_page().and_then(|p| p.content_provider())
}
}),
);