Update helpers.js

This commit is contained in:
Nariman Jelveh 2024-04-26 19:13:22 -07:00
parent fd59a6c994
commit bfa6419070

View File

@ -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,