Merge pull request #79723 from KoBeWi/tfw_you_single-linedly_implement_a_proposal😎

Use existing `plugin.cfg`
This commit is contained in:
Rémi Verschelde 2024-04-26 15:12:58 +02:00
commit 593e30841d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ void PluginConfigDialog::_on_confirmed() {
String script_path = path.path_join(script_name); String script_path = path.path_join(script_name);
Ref<ConfigFile> cf = memnew(ConfigFile); Ref<ConfigFile> cf = memnew(ConfigFile);
cf->load(path.path_join("plugin.cfg"));
cf->set_value("plugin", "name", name_edit->get_text()); cf->set_value("plugin", "name", name_edit->get_text());
cf->set_value("plugin", "description", desc_edit->get_text()); cf->set_value("plugin", "description", desc_edit->get_text());
cf->set_value("plugin", "author", author_edit->get_text()); cf->set_value("plugin", "author", author_edit->get_text());