diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-01-20 23:50:46 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-01-20 23:53:42 +0100 |
commit | f9d0bc1858fb0e6da6b4bbdee29be4e40c48a57f (patch) | |
tree | dedd5c0617426194d0f88ba87abf8e06e82ac860 /editor | |
parent | 09e4d7e9ebb3aa1f1d8b7adf96778a9568797518 (diff) |
Make "Export with Debug" more visible in the Export dialog
This swaps out the CheckButton with a CheckBox, which has two benefits:
- The checkbox icon appears to the left of the text, which moves it
closer from the text. This makes it more easily noticeable, as
it also appears below the "File:" text now.
- It follows the UI convention of using checkboxes for options that
do not bear an immediate effect, unlike CheckButtons which are
expected to have an immediate effect when toggled.
This closes #25170.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_export.cpp | 4 | ||||
-rw-r--r-- | editor/project_export.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 976eff0c56..8e5ef88698 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -1298,12 +1298,12 @@ ProjectExportDialog::ProjectExportDialog() { export_project->connect("file_selected", this, "_export_project_to_path"); export_project->get_line_edit()->connect("text_changed", this, "_validate_export_path"); - export_debug = memnew(CheckButton); + export_debug = memnew(CheckBox); export_debug->set_text(TTR("Export With Debug")); export_debug->set_pressed(true); export_project->get_vbox()->add_child(export_debug); - export_pck_zip_debug = memnew(CheckButton); + export_pck_zip_debug = memnew(CheckBox); export_pck_zip_debug->set_text(TTR("Export With Debug")); export_pck_zip_debug->set_pressed(true); export_pck_zip->get_vbox()->add_child(export_pck_zip_debug); diff --git a/editor/project_export.h b/editor/project_export.h index b292976a78..f8b6484477 100644 --- a/editor/project_export.h +++ b/editor/project_export.h @@ -141,8 +141,8 @@ private: FileDialog *export_pck_zip; FileDialog *export_project; - CheckButton *export_debug; - CheckButton *export_pck_zip_debug; + CheckBox *export_debug; + CheckBox *export_pck_zip_debug; void _open_export_template_manager(); |