From bfa6419070a6bc1189287c39925f41ffb207339f Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Fri, 26 Apr 2024 19:13:22 -0700 Subject: [PATCH] Update helpers.js --- src/helpers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers.js b/src/helpers.js index 9b3df23aa..acef9ce68 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -1853,7 +1853,8 @@ window.open_item = async function(options){ const is_shortcut = $(el_item).attr('data-is_shortcut') === '1'; const shortcut_to_path = $(el_item).attr('data-shortcut_to_path'); const associated_app_name = $(el_item).attr('data-associated_app_name'); - const file_uid = $(el_item).attr('data-uid') + const file_uid = $(el_item).attr('data-uid'); + //---------------------------------------------------------------- // Is this a shortcut whose source is perma-deleted? //---------------------------------------------------------------- @@ -1950,7 +1951,7 @@ window.open_item = async function(options){ //---------------------------------------------------------------- // Does the user have a preference for this file type? //---------------------------------------------------------------- - else if(!is_dir && user_preferences[`default_apps${path.extname(item_path).toLowerCase()}`]) { + else if(!associated_app_name && !is_dir && user_preferences[`default_apps${path.extname(item_path).toLowerCase()}`]) { launch_app({ name: user_preferences[`default_apps${path.extname(item_path).toLowerCase()}`], file_path: item_path,