window: Always ask for program to open images
This fixes "Open With…" not always asking for a program.
This commit is contained in:
parent
65a5f39861
commit
05868d785f
2 changed files with 2 additions and 1 deletions
|
|
@ -518,6 +518,7 @@ impl LpWindow {
|
|||
|
||||
if let Some(ref file) = imp.image_view.current_file() {
|
||||
let launcher = gtk::FileLauncher::new(Some(file));
|
||||
launcher.set_always_ask(true);
|
||||
if let Err(e) = launcher.launch_future(Some(self)).await {
|
||||
if !e.matches(gtk::DialogError::Dismissed) {
|
||||
log::error!("Could not open image in external program: {}", e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue