Przeglądaj źródła

【主工具栏】- 页面缩放弹窗选中效果补充

liaoxiaoyue 1 rok temu
rodzic
commit
a7e363f5e5

+ 4 - 0
PDF Office/PDF Office/Class/PDFWindowController/Toolbar/KMToolbarViewController.swift

@@ -197,6 +197,10 @@ class KMToolbarViewController: NSViewController {
     
     
     @IBAction func zoomModelSelectButtonAction(_ sender: NSPopUpButton) {
+        for item in sender.itemArray {
+            item.state = .off
+        }
+        sender.selectedItem?.state = .on
         self.delegate?.toolbarViewController?(self, zoomModel: sender.selectedTag())
     }