1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +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:
António Fernandes 2024-01-27 18:18:07 +00:00
parent e4deb16def
commit 12980ee1bd

View File

@ -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);
}