|
@@ -116,7 +116,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|
|
#if VERSION_DMG
|
|
|
// 执行相应的操作
|
|
|
if url.scheme == "subscriptiondmgschemes" {
|
|
|
- if !KMLightMemberManager.manager.isLogin() {
|
|
|
+ if !KMLightMemberManager.manager.isLogin() && NSApp.mainWindow != nil {
|
|
|
KMLoginWindowController.show(window: NSApp.mainWindow!)
|
|
|
} else {
|
|
|
KMPurchaseManager.manager.restorePurchases()
|