[nautilus] dnd: Only allow drop to archive if file roller installed



commit fbee0fb96a8c0e22ce9d88a2d95adc649cb6ea43
Author: Corey Berla <corey berla me>
Date:   Sun Jul 3 13:28:04 2022 -0700

    dnd: Only allow drop to archive if file roller installed

 src/nautilus-dnd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c
index 3bdf1f68b..b6a87a1ba 100644
--- a/src/nautilus-dnd.c
+++ b/src/nautilus-dnd.c
@@ -9,6 +9,7 @@
  */
 
 #include "nautilus-dnd.h"
+#include "nautilus-file-utilities.h"
 
 static gboolean
 check_same_fs (NautilusFile *file1,
@@ -168,7 +169,8 @@ nautilus_dnd_get_preferred_action (NautilusFile *target_file,
 
     /* First check target imperatives */
 
-    if (nautilus_file_is_archive (target_file))
+    if (nautilus_is_file_roller_installed () &&
+        nautilus_file_is_archive (target_file))
     {
         return GDK_ACTION_COPY;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]