mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-01 05:23:56 +00:00
files-view: Update actions immediately on selection change
In the network view, if the row is not selected, clicking the unmount button does nothing. Indeed, the action is still disabled, despite an elligible item being selected already. This happens because the actions state is updated on idle along with the context menus. This is reasonable as the context menus update can be expensive. However, not updating actions state imimediately is unexpected, so let's immediately update them when selection changes.
This commit is contained in:
parent
e4deb16def
commit
12980ee1bd
|
@ -8696,6 +8696,7 @@ nautilus_files_view_notify_selection_changed (NautilusFilesView *view)
|
|||
view);
|
||||
}
|
||||
|
||||
nautilus_files_view_update_actions_state (view);
|
||||
schedule_update_context_menus (view);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue