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

LibGUI: Remove GUI::FilePicker::file_exists()

I have no idea why this existed but everyone should just use
Core::File::exists() instead. :^)
This commit is contained in:
Andreas Kling 2021-02-19 23:46:54 +01:00
parent a8e0671344
commit 4f0be55770
4 changed files with 4 additions and 18 deletions

View file

@ -538,7 +538,7 @@ void HackStudioWidget::reveal_action_tab(GUI::Widget& widget)
NonnullRefPtr<GUI::Action> HackStudioWidget::create_debug_action()
{
return GUI::Action::create("Debug", Gfx::Bitmap::load_from_file("/res/icons/16x16/debug-run.png"), [this](auto&) {
if (!GUI::FilePicker::file_exists(get_project_executable_path())) {
if (!Core::File::exists(get_project_executable_path())) {
GUI::MessageBox::show(window(), String::formatted("Could not find file: {}. (did you build the project?)", get_project_executable_path()), "Error", GUI::MessageBox::Type::Error);
return;
}