Browse Source

【订阅】DMG购买成功窗口null判断

lizhe 1 year ago
parent
commit
5ec6482980
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PDF Office/PDF Master/AppDelegate.swift

+ 1 - 1
PDF Office/PDF Master/AppDelegate.swift

@@ -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()