1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Improve FileDialog filters

This commit is contained in:
kobewi
2022-01-08 16:27:15 +01:00
parent 13d25f9980
commit b403954e41
2 changed files with 4 additions and 1 deletions

View File

@@ -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();