Merge pull request #81344 from AThousandShips/folder_color_fix
Fix saving editor folder colors
This commit is contained in:
commit
008dc63fe6
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user