mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Fix crash on Mac save dialog when replacing file (#741)
This commit is contained in:
parent
7a97c71ce8
commit
d142ce47ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue