You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
@@ -567,6 +567,7 @@ void FileDialog::clear_filters() {
|
||||
invalidate();
|
||||
}
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user