summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2019-12-06 22:40:59 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2019-12-06 22:40:59 -0300
commitd057007541abab751ad956a44139be206acb8128 (patch)
tree7c7f36a99c99bf5cc42c79d3019bcb01a13bf2d3 /scene/gui
parentff58030ed693b6915ea7b378b0483b65547d5f8b (diff)
Add spaces after commas and strip extra ones in *FileDialog filter menu
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/file_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index a76e99f304..dd9e11508f 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -558,9 +558,9 @@ void FileDialog::update_filters() {
const int max_filters = 5;
for (int i = 0; i < MIN(max_filters, filters.size()); i++) {
- String flt = filters[i].get_slice(";", 0);
+ String flt = filters[i].get_slice(";", 0).strip_edges();
if (i > 0)
- all_filters += ",";
+ all_filters += ", ";
all_filters += flt;
}