Add spaces after commas and strip extra ones in *FileDialog filter menu
This commit is contained in:
parent
ff58030ed6
commit
d057007541
2 changed files with 4 additions and 4 deletions
|
@ -907,9 +907,9 @@ void EditorFileDialog::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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue