1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

HackStudio: Scope the "delete file from project" action to tree view

Otherwise it triggers when trying to delete characters in the editor.
This commit is contained in:
Andreas Kling 2021-11-30 16:12:49 +01:00
parent 354c4690d2
commit d3bd9f1f0c

View file

@ -561,7 +561,8 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_delete_action()
}
}
}
});
},
m_project_tree_view);
delete_action->set_enabled(false);
return delete_action;
}