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:
parent
a8e0671344
commit
4f0be55770
4 changed files with 4 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue