Correctly save Twitter ExtensionPoints

This commit is contained in:
Maurice Parker
2020-04-14 23:03:08 -05:00
parent df79da291f
commit 9e0248c494
8 changed files with 23 additions and 25 deletions

View File

@@ -120,12 +120,8 @@ private extension ExtensionPointEnableWindowController {
switch result {
case .success(let tokenSuccess):
ExtensionPointManager.shared.activateExtensionPoint(extensionPointType, tokenSuccess: tokenSuccess)
let screenName = tokenSuccess.parameters["screen_name"] as? String ?? ""
print("******************* \(screenName)")
self.hostWindow!.endSheet(self.window!, returnCode: NSApplication.ModalResponse.OK)
case .failure(let oauthSwiftError):
NSApplication.shared.presentError(oauthSwiftError)
}