Skip to content

Commit 5bdc454

Browse files
committed
Open plugin photos in the viewer instead of downloading
1 parent 0ad55b6 commit 5bdc454

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/app.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export const host: Host = {
9090
changed(p) { if (!tab()) return; if (p === pane()) chrome(); renderTabbar(); },
9191
open(e, p) {
9292
if (e.dir) p.navigate(e.path);
93-
else if (settings.openFiles === "viewer" && hooks.preview?.(e)) return;
93+
// plugin photos (e.preview) always open in the viewer: "Open with app" there downloads the original
94+
else if ((settings.openFiles === "viewer" || e.preview) && hooks.preview?.(e)) return;
9495
else if (hooks.open) hooks.open(e, p);
9596
else invoke("open_path", { path: e.path }).catch((err) => flash(String(err)));
9697
},

0 commit comments

Comments
 (0)