1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Use get_slicec instead of get_slice for single character splitters

This commit is contained in:
A Thousand Ships
2024-11-16 17:16:07 +01:00
parent b5bdb88062
commit 466590d0ec
58 changed files with 210 additions and 210 deletions

View File

@@ -572,7 +572,7 @@ void EditorSettingsDialog::_update_shortcuts() {
// Create all sections first.
for (const String &E : slist) {
Ref<Shortcut> sc = EditorSettings::get_singleton()->get_shortcut(E);
String section_name = E.get_slice("/", 0);
String section_name = E.get_slicec('/', 0);
if (sections.has(section_name)) {
continue;
@@ -605,7 +605,7 @@ void EditorSettingsDialog::_update_shortcuts() {
continue;
}
String section_name = E.get_slice("/", 0);
String section_name = E.get_slicec('/', 0);
TreeItem *section = sections[section_name];
if (!_should_display_shortcut(sc->get_name(), sc->get_events(), true)) {