diff --git a/src/helpers.js b/src/helpers.js index 9b3df23a..acef9ce6 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,