You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
@@ -444,7 +444,7 @@ void ProjectList::_migrate_config() {
|
||||
String path = EDITOR_GET(property_key);
|
||||
print_line("Migrating legacy project '" + path + "'.");
|
||||
|
||||
String favoriteKey = "favorite_projects/" + property_key.get_slice("/", 1);
|
||||
String favoriteKey = "favorite_projects/" + property_key.get_slicec('/', 1);
|
||||
bool favorite = EditorSettings::get_singleton()->has_setting(favoriteKey);
|
||||
add_project(path, favorite);
|
||||
if (favorite) {
|
||||
@@ -651,7 +651,7 @@ void ProjectList::sort_projects() {
|
||||
PackedStringArray remaining;
|
||||
for (const String &part : search_parts) {
|
||||
if (part.begins_with("tag:")) {
|
||||
tags.push_back(part.get_slice(":", 1));
|
||||
tags.push_back(part.get_slicec(':', 1));
|
||||
} else {
|
||||
remaining.append(part);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user