Nariman Jelveh před 1 rokem
rodič
revize
bfa6419070
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      src/helpers.js

+ 3 - 2
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,