Browse Source

【会员】取消注销文案调整

lizhe 1 year ago
parent
commit
bbc039b9c5

+ 2 - 2
PDF Office/PDF Master/Class/KMLightMember/Controller/AccountInfo/View/KMAccountInfoView.swift

@@ -247,7 +247,7 @@ extension KMAccountInfoView: KMAccountInfoViewAction {
     
     @IBAction func moreButtonAction(_ sender: NSButton) {
         self.updateMoreButtonState(select: true)
-        let vc: KMHomePopViewController = KMHomePopViewController().initWithPopViewDataArr([NSLocalizedString("Log out", comment: ""), NSLocalizedString("Cancellation", comment: "")])
+        let vc: KMHomePopViewController = KMHomePopViewController().initWithPopViewDataArr([NSLocalizedString("Log out", comment: ""), NSLocalizedString("Cancel", comment: "")])
         let createFilePopover: NSPopover = NSPopover.init()
         createFilePopover.contentViewController = vc
         createFilePopover.delegate = self
@@ -259,7 +259,7 @@ extension KMAccountInfoView: KMAccountInfoViewAction {
 //        vc.customBoxWidthLayoutConstraint.constant = sender.frame.width
         vc.downCallback = { [unowned self] (downEntered: Bool, count: String) -> Void in
             if downEntered {
-                if count == "Cancel" {
+                if count == NSLocalizedString("Cancel", comment: "") {
                     createFilePopover.close()
                     
                     guard let callBack = self.cancellationAction else { return }