Improve FileDialog filters
This commit is contained in:
parent
13d25f9980
commit
b403954e41
2 changed files with 4 additions and 1 deletions
|
|
@ -649,6 +649,7 @@ void FileDialog::clear_filters() {
|
|||
}
|
||||
|
||||
void FileDialog::add_filter(const String &p_filter) {
|
||||
ERR_FAIL_COND_MSG(p_filter.begins_with("."), "Filter must be \"filename.extension\", can't start with dot.");
|
||||
filters.push_back(p_filter);
|
||||
update_filters();
|
||||
invalidate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue