Skip to content

Commit

Permalink
Filemanager: Only enable rename if available
Browse files Browse the repository at this point in the history
  • Loading branch information
danners authored and awesomekling committed Feb 19, 2022
1 parent ad722a9 commit 0787571
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Applications/FileManager/DirectoryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0787571

Please sign in to comment.