mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
HackStudio: Remove noop when deciding whether to disable delete action
The iterator in has_permissions will just be equal to sections.end() when there are no selected files.
This commit is contained in:
parent
bf33a14081
commit
0264d3de45
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ void HackStudioWidget::configure_project_tree_view()
|
|||
return access(m_project->model().full_path(selected_file.parent()).characters(), W_OK) == 0;
|
||||
});
|
||||
bool has_permissions = it != selections.end();
|
||||
m_delete_action->set_enabled(!m_project_tree_view->selection().is_empty() && has_permissions);
|
||||
m_delete_action->set_enabled(has_permissions);
|
||||
};
|
||||
|
||||
m_project_tree_view->on_activation = [this](auto& index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue