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:
parent
f9fce9f2a7
commit
30e12d681c
@ -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:@";"];
|
||||
|
Loading…
Reference in New Issue
Block a user