Skip to content

Commit 6ac2af4

Browse files
committed
Export to downloads folder by default
Export to downloads folder by default
1 parent cb14817 commit 6ac2af4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Support/Views/AppView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ struct AppView: View {
287287
savePanel.allowedContentTypes = [.propertyList]
288288
savePanel.nameFieldStringValue = "nl.root3.support.plist"
289289
savePanel.canCreateDirectories = true
290+
savePanel.directoryURL = .downloadsDirectory
290291

291292
if savePanel.runModal() == .OK, let url = savePanel.url {
292293
try data.write(to: url)
@@ -347,6 +348,7 @@ struct AppView: View {
347348
savePanel.allowedContentTypes = [.init(filenameExtension: "mobileconfig")!]
348349
savePanel.nameFieldStringValue = "nl.root3.support.mobileconfig"
349350
savePanel.canCreateDirectories = true
351+
savePanel.directoryURL = .downloadsDirectory
350352

351353
if savePanel.runModal() == .OK, let url = savePanel.url {
352354
try profileData.write(to: url)

0 commit comments

Comments
 (0)