44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From ba39a734d7345ea6f6a3e56ee950f6e4406b597d Mon Sep 17 00:00:00 2001
|
|
From: root <root@localhost.localdomain>
|
|
Date: Fri, 31 Jul 2020 09:55:24 +0800
|
|
Subject: [PATCH] =?UTF-8?q?remove=20sendto=20option=20in=20computer=20tras?=
|
|
=?UTF-8?q?h=20and=20root=20folder=20-=20=E5=9C=A8=E8=AE=A1=E7=AE=97?=
|
|
=?UTF-8?q?=E6=9C=BA=E5=9B=9E=E6=94=B6=E7=AB=99=E4=B8=8E=E4=B8=BB=E6=96=87?=
|
|
=?UTF-8?q?=E4=BB=B6=E5=A4=B9=E4=B8=AD=E7=A7=BB=E9=99=A4=E4=BA=86=E5=8F=91?=
|
|
=?UTF-8?q?=E9=80=81=E5=88=B0=E9=80=89=E9=A1=B9?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
sendto/caja-nste.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/sendto/caja-nste.c b/sendto/caja-nste.c
|
|
index 9814f74..c14f4df 100644
|
|
--- a/sendto/caja-nste.c
|
|
+++ b/sendto/caja-nste.c
|
|
@@ -67,10 +67,19 @@ caja_nste_get_file_items (CajaMenuProvider *provider,
|
|
GList *items = NULL;
|
|
gboolean one_item;
|
|
CajaMenuItem *item;
|
|
+ GList *scan = NULL;
|
|
|
|
if (files == NULL)
|
|
return NULL;
|
|
|
|
+ for (scan = files; scan; scan = scan->next) {
|
|
+ CajaFileInfo *file = scan->data;
|
|
+ if(caja_file_info_get_file_type(file)==G_FILE_TYPE_SHORTCUT||
|
|
+ caja_file_info_get_file_type(file)==G_FILE_TYPE_MOUNTABLE)
|
|
+ return NULL;
|
|
+ }
|
|
+
|
|
+
|
|
one_item = (files != NULL) && (files->next == NULL);
|
|
if (one_item &&
|
|
!caja_file_info_is_directory ((CajaFileInfo *)files->data)) {
|
|
--
|
|
2.18.1
|
|
|