mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 15:59:43 +00:00
Filemanager: Only enable rename if available
This commit is contained in:
parent
ad722a9f06
commit
0787571192
Notes:
sideshowbarker
2024-07-17 18:33:18 +09:00
Author: https://github.com/danners
Commit: 0787571192
Pull-request: https://github.com/SerenityOS/serenity/pull/12634
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue