window: Use path instead of URI for "Open With"

Fixes an issue where paths with spaces or anything
else encoded within the URI could not be opened
externally.
This commit is contained in:
Christopher Davis 2022-02-05 13:26:33 -08:00
parent 2aa480eee5
commit 48b8ce9455
2 changed files with 6 additions and 6 deletions

View file

@ -371,7 +371,7 @@ impl LpImageView {
Ok(())
}
fn current_page(&self) -> Option<LpImagePage> {
pub fn current_page(&self) -> Option<LpImagePage> {
let carousel = &self.imp().carousel;
let pos = carousel.position().round() as u32;
if carousel.n_pages() > 0 {