Browse Source

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

tangchao 1 year ago
parent
commit
04ba9402f7

+ 2 - 2
PDF Office/PDF Master/Class/Home/WindowController/KMHistoryFileDeleteWindowController.swift

@@ -72,10 +72,10 @@ class KMHistoryFileDeleteWindowController: KMBaseWindowController {
         if urls.count == indexPaths.count {
             deleteOptionsLabel.stringValue = NSLocalizedString("Clear All Recents", comment: "")
         } else {
-            deleteOptionsLabel.stringValue = NSLocalizedString("Delete selected file from the recents", comment: "")
+            deleteOptionsLabel.stringValue = NSLocalizedString("Remove from Recents", comment: "")
         }
 
-        noLongerPromptVC.stringValue = NSLocalizedString("Don't ask again", comment: "")
+        noLongerPromptVC.stringValue = NSLocalizedString("Do not show this message again", comment: "")
         cancelVC.stringValue = NSLocalizedString("Cancel", comment: "")
         deleteVC.stringValue = NSLocalizedString("Delete", comment: "")
         

+ 6 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -4502,6 +4502,12 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
                     self.toolbarController.toolbarType = isSelected ? .None : .viewSetting
                     toolbarItem.isSelected = !isSelected
                     self.toolbarController.clickItem(KMToolbarViewSettingIdentifier)
+                    let rightItem = self.toolbarController.findItem(KMRightControlToolbarItemIdentifier)
+                    if isSelected {
+                        rightItem?.isSelected = false
+                    } else {
+                        rightItem?.isSelected = true
+                    }
                 } else if toolbarItem.itemIdentifier == KMLeftControlToolbarItemIdentifier {
                     toolbarItem.isSelected = !toolbarItem.isSelected
                     self.leftSideViewController.showPanelView(show: toolbarItem.isSelected)