Fix project name being overwrite everytime show_dialog
is called
This commit is contained in:
parent
80de898d72
commit
b8d7a43f73
1 changed files with 6 additions and 3 deletions
|
@ -727,9 +727,12 @@ void ProjectDialog::show_dialog() {
|
|||
project_path->set_text(d->get_current_dir());
|
||||
fdialog->set_current_dir(d->get_current_dir());
|
||||
}
|
||||
String proj = TTR("New Game Project");
|
||||
project_name->set_text(proj);
|
||||
_text_changed(proj);
|
||||
|
||||
if (project_name->get_text().is_empty()) {
|
||||
String proj = TTR("New Game Project");
|
||||
project_name->set_text(proj);
|
||||
_text_changed(proj);
|
||||
}
|
||||
|
||||
project_path->set_editable(true);
|
||||
browse->set_disabled(false);
|
||||
|
|
Loading…
Reference in a new issue