diff options
author | António Fernandes <antoniof@gnome.org> | 2022-08-23 20:54:28 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-08-31 01:43:56 +0100 |
commit | 8ab4def4907e988af6114677b29e7d65a86487b0 (patch) | |
tree | 6b08f10362e10995d1ba47925c56e707035cfbe1 /src/nautilus-files-view.c | |
parent | c87bbd97043669f508c883344740009fbf604a82 (diff) | |
download | nautilus-8ab4def4907e988af6114677b29e7d65a86487b0.tar.gz |
files-view: Hide Properties of Starred and Recent
The Properties of these places are broken and unnecessary.
Also, disable copying the URI of these locations, because it's also
useless.
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r-- | src/nautilus-files-view.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index eff1fe368..9ddc1e1f3 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -7729,7 +7729,9 @@ real_update_actions_state (NautilusFilesView *view) action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), "copy-current-location"); g_simple_action_set_enabled (G_SIMPLE_ACTION (action), - !selection_contains_search); + !selection_contains_recent && + !selection_contains_search && + !selection_contains_starred); /* Drive menu */ show_mount = (selection != NULL); @@ -7843,7 +7845,9 @@ real_update_actions_state (NautilusFilesView *view) action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), "current-directory-properties"); g_simple_action_set_enabled (G_SIMPLE_ACTION (action), - !selection_contains_search); + !selection_contains_recent && + !selection_contains_search && + !selection_contains_starred); /* Actions that are related to the clipboard need request, request the data * and update them once we have the data */ |