소스 검색

【综合】整理代码

tangchao 5 달 전
부모
커밋
2d7a84cc5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.swift

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.swift

@@ -289,7 +289,7 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
                 licenseCodeBox.fillColor = NSColor(named: "KMPurchase_FFFFFF")!
                 notFoundButton.title = NSLocalizedString("Not Found?", comment: "")
                 notFoundButton.setTitleColor(color: NSColor(named: "KMPurchaseCouponColor")!, font: NSFont(name: "body-s-regular", size: 14))
-                licenseCodeTextField.stringValue = VerificationManager.default().originLicenseCode
+                licenseCodeTextField.stringValue = VerificationManager.default().originLicenseCode ?? ""
                 refreshLicenseCodeView(isReveal: true)
                 licenseCodeErrorLabel.stringValue = NSLocalizedString("Please enter right license code. How to Retrieve License.", comment: "")
                 licenseCodeErrorLabel.textColor = NSColor(named: "KMPurchaseErrorColor")