HackStudio: Fix inverted condition when trying to create directories

This commit is contained in:
stelar7
2022-04-11 16:21:40 +02:00
committed by Andreas Kling
parent 23ea5c6721
commit 55e9192886

View File

@@ -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;
}