mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Convert to async/await.
This commit is contained in:
1 parent
143e5e1da8
commit
1b2e2d0513
6 files changed
+46
-33
No files matched your search
@@ -29,9 +29,10 @@ final class AddFolderWindowController : NSWindowController {
|
||||
}
|
||||
self.hostWindow = hostWindow
|
||||
|
||||
hostWindow.beginSheet(window) { (returnCode: NSApplication.ModalResponse) -> Void in
|
||||
if returnCode == NSApplication.ModalResponse.OK {
|
||||
self.addFolderIfNeeded()
|
||||
Task { @MainActor in
|
||||
let response = await hostWindow.beginSheet(window)
|
||||
if response == .OK {
|
||||
addFolderIfNeeded()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user