summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-04-18 16:37:57 +0200
committerGitHub <noreply@github.com>2018-04-18 16:37:57 +0200
commit9ce8d8ddda35cda781364e9b648325a2953d3f63 (patch)
tree5bd828bce25e385e740f4fe9d71d743bc8bd23ec
parent3b1ea51e4079bd7772cbfad731ef57f49006f461 (diff)
parentbff73bdbf199f938acdabfbe560991683c3dad9b (diff)
Merge pull request #18261 from flashyincceo/export-project-default-filename
Set default file name for exported projects
-rw-r--r--editor/project_export.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 4dbd9d500e..bdbb79df6d 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -986,6 +986,10 @@ ProjectExportDialog::ProjectExportDialog() {
editor_icons = "EditorIcons";
default_filename = EditorSettings::get_singleton()->get_project_metadata("export_options", "default_filename", String());
+
+ if (default_filename == "") {
+ default_filename = ProjectSettings::get_singleton()->get("application/config/name");
+ }
}
ProjectExportDialog::~ProjectExportDialog() {