Merge pull request #76964 from aaronfranke/addon-sort

Sort the list of addons before saving them
This commit is contained in:
Rémi Verschelde 2023-05-12 10:05:44 +02:00
commit e4f81fb79e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -3302,6 +3302,7 @@ void EditorNode::_update_addon_config() {
if (enabled_addons.size() == 0) { if (enabled_addons.size() == 0) {
ProjectSettings::get_singleton()->set("editor_plugins/enabled", Variant()); ProjectSettings::get_singleton()->set("editor_plugins/enabled", Variant());
} else { } else {
enabled_addons.sort();
ProjectSettings::get_singleton()->set("editor_plugins/enabled", enabled_addons); ProjectSettings::get_singleton()->set("editor_plugins/enabled", enabled_addons);
} }