5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 23:02:19 +08:00

[mac] Fix for save dialog

This commit is contained in:
Lea Anthony 2021-12-15 19:16:26 +11:00
parent f9fce9f2a7
commit 30e12d681c
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -566,7 +566,7 @@
}
// Filters - semicolon delimited list of file extensions
if( filters != nil ) {
if( filters != nil && [filters length] > 0) {
filters = [filters stringByReplacingOccurrencesOfString:@"*." withString:@""];
filters = [filters stringByReplacingOccurrencesOfString:@" " withString:@""];
NSArray *filterList = [filters componentsSeparatedByString:@";"];