From 30e12d681c933ec884d85fba922b163fd926a8ff Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 15 Dec 2021 19:16:26 +1100 Subject: [PATCH] [mac] Fix for save dialog --- v2/internal/frontend/desktop/darwin/WailsContext.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/internal/frontend/desktop/darwin/WailsContext.m b/v2/internal/frontend/desktop/darwin/WailsContext.m index aa7a9205..e552da6f 100644 --- a/v2/internal/frontend/desktop/darwin/WailsContext.m +++ b/v2/internal/frontend/desktop/darwin/WailsContext.m @@ -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:@";"];