You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #81344 from AThousandShips/folder_color_fix
Fix saving editor folder colors
This commit is contained in:
@@ -2795,6 +2795,12 @@ void FileSystemDock::_folder_color_index_pressed(int p_index, PopupMenu *p_menu)
|
||||
}
|
||||
}
|
||||
|
||||
if (!ProjectSettings::get_singleton()->has_setting("file_customization/folder_colors")) {
|
||||
ProjectSettings::get_singleton()->set_setting("file_customization/folder_colors", assigned_folder_colors);
|
||||
} else if (assigned_folder_colors.is_empty()) {
|
||||
ProjectSettings::get_singleton()->set_setting("file_customization/folder_colors", Variant());
|
||||
}
|
||||
|
||||
ProjectSettings::get_singleton()->save();
|
||||
|
||||
_update_tree(get_uncollapsed_paths());
|
||||
|
||||
Reference in New Issue
Block a user