Browse Source

综合-菜单去掉检查更新入口

tangchao 1 year ago
parent
commit
0e4533b44a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      PDF Office/PDF Master/AppDelegate.swift

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

@@ -162,10 +162,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
         }
         
         let PDFOfficeMenu = mainMenu?.item(at: 0)?.submenu
-        let appTarget = KMTools_OC.getAppTarget()
-        if (appTarget == .DMG) {
-            PDFOfficeMenu?.insertItem(withTitle: NSLocalizedString("Check for Updates", comment: ""), action: #selector(checkForUpdates), target: self, at: 1)
-        }
+//        let appTarget = KMTools_OC.getAppTarget()
+//        if (appTarget == .DMG) {
+//            PDFOfficeMenu?.insertItem(withTitle: NSLocalizedString("Check for Updates", comment: ""), action: #selector(checkForUpdates), target: self, at: 1)
+//        }
         if let items = PDFOfficeMenu?.items {
             for menu in items {
                 let ranges = menu.title.ranges(of: "PDF Master")