Skip to content

Commit

Permalink
bugfix: Set default godot kotlin configuration for project manager an…
Browse files Browse the repository at this point in the history
…d avoir registering it (#363)
  • Loading branch information
piiertho authored Oct 24, 2022
1 parent 5c0aea1 commit 640c4e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gd_kotlin_configuration.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "gd_kotlin_configuration.h"
#include "long_string_queue.h"
#include "main/main.h"

#include <core/io/json.h>
#include <core/os/file_access.h>
Expand Down Expand Up @@ -68,8 +69,11 @@ GdKotlinConfiguration GdKotlinConfiguration::load_gd_kotlin_configuration_or_def
configuration_access_read->close();
} else {
#ifdef TOOLS_ENABLED
FileAccessRef file = FileAccess::open(configuration_path, FileAccess::WRITE);
configuration = GdKotlinConfiguration();
if (Main::is_project_manager()) {
return configuration;
}
FileAccessRef file = FileAccess::open(configuration_path, FileAccess::WRITE);
file->store_string(configuration.to_json());
file->close();
#else
Expand Down

0 comments on commit 640c4e2

Please sign in to comment.