Use correct account method for adding folders

This commit is contained in:
Maurice Parker
2019-09-27 06:38:43 -05:00
parent 3464fbfc7f
commit 6536dbf2a5
4 changed files with 34 additions and 7 deletions

View File

@@ -72,7 +72,15 @@ class AddFolderWindowController : NSWindowController {
return
}
account.ensureFolder(with: folderName)
account.addFolder(folderName) { result in
switch result {
case .success:
break
case .failure(let error):
NSApplication.shared.presentError(error)
}
}
}
// MARK: Actions