summaryrefslogtreecommitdiff
path: root/tools/editor/project_export.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-28 20:54:39 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-28 20:54:39 +0200
commit8ae279a5e7118e28ae3788f45ddd9c055af560dc (patch)
treeb8c0881f400e066bcb2600d263a0c6747af279f9 /tools/editor/project_export.cpp
parent45ffc053b5c96a0c384261d67dd1a88cc599f1a9 (diff)
parentab4caa79538750d7557308dd4f83d6b17d9bdd22 (diff)
Merge pull request #4466 from eska014/move-export-debug-toggle
Make export GUI debug toggle more obvious
Diffstat (limited to 'tools/editor/project_export.cpp')
-rw-r--r--tools/editor/project_export.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp
index df8ebad08d..199d7646d4 100644
--- a/tools/editor/project_export.cpp
+++ b/tools/editor/project_export.cpp
@@ -481,7 +481,8 @@ void ProjectExportDialog::_export_action(const String& p_file) {
return;
String platform = selected->get_metadata(0);
- Error err = export_platform(platform,p_file,file_export_check->is_pressed(),file_export_password->get_text(),false);
+ bool debugging_enabled = EditorImportExport::get_singleton()->get_export_platform(platform)->is_debugging_enabled();
+ Error err = export_platform(platform,p_file,debugging_enabled,file_export_password->get_text(),false);
if (err!=OK) {
error->set_text("Error exporting project!");
error->popup_centered_minsize();
@@ -592,7 +593,7 @@ void ProjectExportDialog::custom_action(const String&) {
String extension = exporter->get_binary_extension();
- file_export_password->set_editable( exporter->requieres_password(file_export_check->is_pressed()));
+ file_export_password->set_editable( exporter->requires_password(exporter->is_debugging_enabled()) );
file_export->clear_filters();
if (extension!="") {
@@ -1453,12 +1454,6 @@ ProjectExportDialog::ProjectExportDialog(EditorNode *p_editor) {
file_export->set_title("Export Project");
file_export->connect("file_selected", this,"_export_action");
- file_export_check = memnew( CheckButton );
- file_export_check->set_text("Enable Debugging");
- file_export_check->set_pressed(true);
- file_export_check->connect("pressed",this,"_export_debug_toggled");
- file_export->get_vbox()->add_margin_child("Debug:",file_export_check);
-
file_export_password = memnew( LineEdit );
file_export_password->set_secret(true);
file_export_password->set_editable(false);