[gthumb] folder context menu: do not allow to copy not mounted volumes



commit 74de8b4882d8cf0e23c7ffb1892499966b9737b2
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun May 30 10:56:27 2021 +0200

    folder context menu: do not allow to copy not mounted volumes

 extensions/file_manager/callbacks.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index bb2bb054..d91cf872 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -1138,6 +1138,9 @@ fm__gth_browser_update_sensitivity_cb (GthBrowser *browser)
        gth_window_enable_action (GTH_WINDOW (browser), "folder-context-cut", (folder != NULL) && 
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
        gth_window_enable_action (GTH_WINDOW (browser), "folder-context-move-to", (folder != NULL) && 
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
        gth_window_enable_action (GTH_WINDOW (browser), "rename", ((folder != NULL) && 
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) || (n_selected > 0));
+       gth_window_enable_action (GTH_WINDOW (browser), "folder-context-copy", (folder != NULL) && 
(g_file_info_get_file_type (folder->info) != G_FILE_TYPE_MOUNTABLE));
+       gth_window_enable_action (GTH_WINDOW (browser), "folder-context-copy-to", (folder != NULL) && 
(g_file_info_get_file_type (folder->info) != G_FILE_TYPE_MOUNTABLE));
+
        _g_object_unref (folder);
 
        _gth_browser_update_paste_command_sensitivity (browser, NULL);


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