From 55e91928868bc2a357d4e82aceed7bcb80b21f2c Mon Sep 17 00:00:00 2001 From: stelar7 Date: Mon, 11 Apr 2022 16:21:40 +0200 Subject: [PATCH] HackStudio: Fix inverted condition when trying to create directories --- Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.cpp b/Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.cpp index 2f4a4358b6..d2664248a0 100644 --- a/Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.cpp +++ b/Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.cpp @@ -202,7 +202,7 @@ void NewProjectDialog::do_create_project() return; auto created = Core::Directory::create(maybe_project_full_path.value(), Core::Directory::CreateDirectories::Yes); - if (!created.is_error()) { + if (created.is_error()) { GUI::MessageBox::show_error(this, String::formatted("Could not create directory {}", create_in)); return; }