1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #103397 from KoBeWi/good_luck_finding_where_'is_path_valid'_is_now_assigned

Improve path validation in ScriptCreateDialog
This commit is contained in:
Rémi Verschelde
2025-03-14 00:08:37 +01:00
2 changed files with 11 additions and 7 deletions

View File

@@ -98,7 +98,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
void _built_in_pressed();
void _use_template_pressed();
bool _validate_parent(const String &p_string);
String _validate_path(const String &p_path, bool p_file_must_exist);
String _validate_path(const String &p_path, bool p_file_must_exist, bool *r_path_valid = nullptr);
void _parent_name_changed(const String &p_parent);
void _template_changed(int p_template = 0);
void _browse_path(bool browse_parent, bool p_save);