|
@@ -166,6 +166,21 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|
|
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")
|
|
|
+ let appTarget = KMTools_OC.getAppTarget()
|
|
|
+ var appName = "PDF Master"
|
|
|
+ if (appTarget == .pro) {
|
|
|
+ appName = "PDF Master Pro"
|
|
|
+ } else if (appTarget == .DMG) {
|
|
|
+ appName = "PDF Master DMG"
|
|
|
+ }
|
|
|
+ if let _range = ranges.range.first {
|
|
|
+ menu.title.replaceSubrange(_range, with: appName)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
let fileMenu = mainMenu?.item(at: 1)?.submenu
|
|
|
let shareItem: NSMenuItem = NSMenuItem(title: NSLocalizedString("Share", comment: ""), action: nil, target: nil)
|