Merge pull request #434 from timothyqiu/qr-code

Fixes #433 Implements SIP002 QR code
This commit is contained in:
Qiu Yuzhou
2017-08-26 00:52:03 +08:00
committed by GitHub
6 changed files with 121 additions and 27 deletions

View File

@ -265,6 +265,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
}
qrcodeWinCtrl = SWBQRCodeWindowController(windowNibName: "SWBQRCodeWindowController")
qrcodeWinCtrl.qrCode = profile.URL()!.absoluteString
qrcodeWinCtrl.legacyQRCode = profile.URL(legacy: true)!.absoluteString
qrcodeWinCtrl.title = profile.title()
qrcodeWinCtrl.showWindow(self)
NSApp.activate(ignoringOtherApps: true)