You've already forked godot
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user