Prechádzať zdrojové kódy

【综合】隐藏what’s New弹窗

wanjun 10 mesiacov pred
rodič
commit
c17feef1db

+ 14 - 14
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/AIConfigWindowController.swift

@@ -873,20 +873,20 @@ import Cocoa
             return
         }
         if self.aiResultTextView.string.count > 0 {
-            if KMFunctionGuideWindowController.availableShow(.aiInfoResultSave) == true {
-                KMFunctionGuideWindowController.setDidShowFor(.aiInfoResultSave)
-                let alert = NSAlert()
-                alert.alertStyle = .critical
-                alert.messageText = NSLocalizedString("The results are not saved. Do you want to save them in other formats?", comment: "")
-                alert.addButton(withTitle: NSLocalizedString("Yes", comment: ""))
-                alert.addButton(withTitle: NSLocalizedString("No", comment: ""))
-                let response = alert.runModal()
-                if response.rawValue == 1001 {
-                    self.cancelAction(self.cancelBtn)
-                }
-                return
-                
-            }
+//            if KMFunctionGuideWindowController.availableShow(.aiInfoResultSave) == true {
+//                KMFunctionGuideWindowController.setDidShowFor(.aiInfoResultSave)
+//                let alert = NSAlert()
+//                alert.alertStyle = .critical
+//                alert.messageText = NSLocalizedString("The results are not saved. Do you want to save them in other formats?", comment: "")
+//                alert.addButton(withTitle: NSLocalizedString("Yes", comment: ""))
+//                alert.addButton(withTitle: NSLocalizedString("No", comment: ""))
+//                let response = alert.runModal()
+//                if response.rawValue == 1001 {
+//                    self.cancelAction(self.cancelBtn)
+//                }
+//                return
+//                
+//            }
         }
         
         self.clearData()

+ 8 - 8
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/Views/AIHeaderView/AIHeaderView.swift

@@ -77,14 +77,14 @@ class AIHeaderView: NSView, NibLoadable {
         }
         
         controller.guideHandle = {[unowned self] vc in
-            if self.guideWindowVC == nil {
-                let guideWindowVC = KMFunctionGuideWindowController.init(windowNibName: "KMFunctionGuideWindowController")
-                self.guideWindowVC = guideWindowVC
-            }
-            self.guideWindowVC.type = .functionMulti
-            self.guideWindowVC.showWindow(nil)
-            KMFunctionGuideWindowController.setDidShowFor(.functionMultiAIGuide)
-            self.guideWindowVC.window?.orderFront(nil)
+//            if self.guideWindowVC == nil {
+//                let guideWindowVC = KMFunctionGuideWindowController.init(windowNibName: "KMFunctionGuideWindowController")
+//                self.guideWindowVC = guideWindowVC
+//            }
+//            self.guideWindowVC.type = .functionMulti
+//            self.guideWindowVC.showWindow(nil)
+//            KMFunctionGuideWindowController.setDidShowFor(.functionMultiAIGuide)
+//            self.guideWindowVC.window?.orderFront(nil)
             
         }
         

+ 8 - 8
PDF Office/PDF Master/Class/Home/ViewController/KMHomeViewController.swift

@@ -885,14 +885,14 @@ extension KMHomeViewController {
     // MARK: - what's New
     
     func loadNewUserGuide() -> Void {
-        if KMFunctionGuideWindowController.availableShow(.functionMultiAIGuide) {
-            let guideWindowVC = KMFunctionGuideWindowController.init(windowNibName: "KMFunctionGuideWindowController")
-            guideWindowVC.type = .functionMulti
-            guideWindowVC.showWindow(nil)
-            guideWindowVC.window?.orderFront(nil)
-            
-            KMFunctionGuideWindowController.setDidShowFor(.functionMultiAIGuide)
-        }
+//        if KMFunctionGuideWindowController.availableShow(.functionMultiAIGuide) {
+//            let guideWindowVC = KMFunctionGuideWindowController.init(windowNibName: "KMFunctionGuideWindowController")
+//            guideWindowVC.type = .functionMulti
+//            guideWindowVC.showWindow(nil)
+//            guideWindowVC.window?.orderFront(nil)
+//            
+//            KMFunctionGuideWindowController.setDidShowFor(.functionMultiAIGuide)
+//        }
     }
     
     func checkRepeatTrialExpiredController() -> Void {

+ 8 - 8
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -578,14 +578,14 @@ NSPopoverDelegate>
     };
     
     controller.guideHandle = ^(AIUserInfoController * _Nonnull vc) {
-        if (!blockSelf.guideWindowVC) {
-            KMFunctionGuideWindowController *guideWindowVC = [[KMFunctionGuideWindowController alloc] initWithWindowNibName:@"KMFunctionGuideWindowController"];
-            blockSelf.guideWindowVC = guideWindowVC;
-        }
-        ((KMFunctionGuideWindowController *)(blockSelf.guideWindowVC)).type = KMGuideInfoTypeFunctionMulti;
-        [blockSelf.guideWindowVC showWindow:nil];
-        [KMFunctionGuideWindowController setDidShowFor:KMGuideInfoTypeFunctionMultiAIGuide];
-        [blockSelf.guideWindowVC.window orderFront:nil];
+//        if (!blockSelf.guideWindowVC) {
+//            KMFunctionGuideWindowController *guideWindowVC = [[KMFunctionGuideWindowController alloc] initWithWindowNibName:@"KMFunctionGuideWindowController"];
+//            blockSelf.guideWindowVC = guideWindowVC;
+//        }
+//        ((KMFunctionGuideWindowController *)(blockSelf.guideWindowVC)).type = KMGuideInfoTypeFunctionMulti;
+//        [blockSelf.guideWindowVC showWindow:nil];
+//        [KMFunctionGuideWindowController setDidShowFor:KMGuideInfoTypeFunctionMultiAIGuide];
+//        [blockSelf.guideWindowVC.window orderFront:nil];
     };
     
     NSPopover *popover = [[NSPopover alloc] init];