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

@ -165,7 +165,7 @@ bool OptionButton::_set(const StringName &p_name, const Variant &p_value) {
_select(index, false);
}
const String property = sname.get_slice("/", 2);
const String property = sname.get_slicec('/', 2);
if (property == "text" || property == "icon") {
_queue_update_size_cache();
}