1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

Filemanager: Only enable rename if available

This commit is contained in:
Simon Danner 2022-02-18 21:04:38 +01:00 committed by Andreas Kling
parent ad722a9f06
commit 0787571192

View file

@ -532,6 +532,7 @@ void DirectoryView::handle_selection_change()
bool can_modify = can_modify_current_selection();
m_delete_action->set_enabled(can_modify);
m_force_delete_action->set_enabled(can_modify);
m_rename_action->set_enabled(can_modify);
if (on_selection_change)
on_selection_change(current_view());