File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,10 @@ void ProjectDialog::_install_path_selected(const String &p_path) {
429
429
get_ok_button ()->grab_focus ();
430
430
}
431
431
432
+ void ProjectDialog::_reset_name () {
433
+ project_name->set_text (TTR (" New Game Project" ));
434
+ }
435
+
432
436
void ProjectDialog::_renderer_selected () {
433
437
ERR_FAIL_NULL (renderer_button_group->get_pressed_button ());
434
438
@@ -694,6 +698,7 @@ void ProjectDialog::set_project_path(const String &p_path) {
694
698
}
695
699
696
700
void ProjectDialog::ask_for_path_and_show () {
701
+ _reset_name ();
697
702
_browse_project_path ();
698
703
}
699
704
@@ -718,8 +723,7 @@ void ProjectDialog::show_dialog(bool p_reset_name) {
718
723
callable_mp (project_name, &LineEdit::select_all).call_deferred ();
719
724
} else {
720
725
if (p_reset_name) {
721
- String proj = TTR (" New Game Project" );
722
- project_name->set_text (proj);
726
+ _reset_name ();
723
727
}
724
728
project_path->set_editable (true );
725
729
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ class ProjectDialog : public ConfirmationDialog {
122
122
void _project_path_selected (const String &p_path);
123
123
void _install_path_selected (const String &p_path);
124
124
125
+ void _reset_name ();
125
126
void _renderer_selected ();
126
127
void _nonempty_confirmation_ok_pressed ();
127
128
You can’t perform that action at this time.
0 commit comments