|
@@ -389,6 +389,10 @@ private final class OAuthLoopbackServer {
|
|
|
|
|
|
|
|
if let parsedURL {
|
|
if let parsedURL {
|
|
|
self.callbackURL = parsedURL
|
|
self.callbackURL = parsedURL
|
|
|
|
|
+ DispatchQueue.main.async {
|
|
|
|
|
+ // Bring the app back to foreground once OAuth redirects.
|
|
|
|
|
+ NSApp.activate(ignoringOtherApps: true)
|
|
|
|
|
+ }
|
|
|
if let continuation = self.callbackContinuation {
|
|
if let continuation = self.callbackContinuation {
|
|
|
self.callbackContinuation = nil
|
|
self.callbackContinuation = nil
|
|
|
continuation.resume(returning: parsedURL)
|
|
continuation.resume(returning: parsedURL)
|