diff options
author | Corey Berla <corey@berla.me> | 2022-08-18 12:28:49 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-01 21:42:41 +0000 |
commit | a6d2865de7041ff5daa6e397d0e15493654cb29a (patch) | |
tree | bce7075ef4e643ebb02ffb5d6a2831c37249402c /src/nautilus-files-view.c | |
parent | a88ad1e3e36bd85bc6139cf8c398fdc79819941f (diff) | |
download | nautilus-a6d2865de7041ff5daa6e397d0e15493654cb29a.tar.gz |
files-view: Add Unstar back to file context menu when in Starred folder
Now we have another way to star files (by DnD), but unstarring is
limitted to the properties window and the listview icon. Add back
the ability to unstar from the files context menu only when in the
starred folder.
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r-- | src/nautilus-files-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 14c2a1e59..f0d38b4ea 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -7923,7 +7923,7 @@ real_update_actions_state (NautilusFilesView *view) action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), "unstar"); - g_simple_action_set_enabled (G_SIMPLE_ACTION (action), show_unstar); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), show_unstar && selection_contains_starred); } /* Convenience function to be called when updating menus, |