mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Fix crash on Mac save dialog when replacing file (#741)
This commit is contained in:
@@ -2431,6 +2431,8 @@ struct webview_priv
|
||||
[panel setAllowedFileTypes:fileTypes];
|
||||
}
|
||||
[panel setTreatsFilePackagesAsDirectories:YES];
|
||||
[panel setNameFieldStringValue:@"Temp"]; // Necessary to prevent crash when replacing files
|
||||
[panel setNameFieldStringValue:@"Untitled"];
|
||||
[panel beginSheetModalForWindow:w->priv.window
|
||||
completionHandler:^(NSInteger result) {
|
||||
[NSApp stopModalWithCode:result];
|
||||
|
||||
Reference in New Issue
Block a user