mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Use (r)find_char instead of (r)find for single characters
This commit is contained in:
parent
5efd124ca1
commit
68f638cf02
70 changed files with 169 additions and 169 deletions
|
|
@ -144,7 +144,7 @@ void ScriptCreateDialog::_notification(int p_what) {
|
|||
|
||||
void ScriptCreateDialog::_path_hbox_sorted() {
|
||||
if (is_visible()) {
|
||||
int filename_start_pos = file_path->get_text().rfind("/") + 1;
|
||||
int filename_start_pos = file_path->get_text().rfind_char('/') + 1;
|
||||
int filename_end_pos = file_path->get_text().get_basename().length();
|
||||
|
||||
if (!is_built_in) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue