mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
parent
b5bdb88062
commit
466590d0ec
58 changed files with 210 additions and 210 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue