Fixed typo for NSSaveDialog

This commit is contained in:
Armando Rivera 2021-08-02 22:35:52 -04:00
parent 4aa9f3d968
commit f4a06bf928
2 changed files with 2 additions and 2 deletions

View File

@ -2,4 +2,4 @@
import NSFunctions
proc newSaveDialog*(parent: ID, types: cstring): cstring {.cdecl, importc: "createSaveDialog".}
proc newSaveDialog*(parent: ID, title: cstring, types: cstring): cstring {.cdecl, importc: "createSaveDialog".}

View File

@ -38,7 +38,7 @@ char* createSaveDialog(id parent, const char* title, const char* types) {
if ([NSApp runModalForWindow:parent] == NSFileHandlingPanelOKButton) {
NSString* path = [[widget URL] path];
// return strdup([path UTF8String]);
return strdup([path UTF8String]);
}
return strdup([path UTF8String]);