Browse Source

【注释】Form注释列表框、下拉框属性面板增删改查操作后刷新Annotation

wanjun 10 months ago
parent
commit
9230cc1028

+ 12 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/ViewController/FormProperties/KMAnnotationChoiceWidgetOptionsViewController.swift

@@ -167,6 +167,9 @@ import Cocoa
         annotation?.setButtonWidgetStateString(list[0])
         
         dropdownNewAddBtn.isEnabled = false
+        
+        annotation?.updateAppearanceStream()
+        pdfView?.setNeedsDisplayAnnotationViewFor(annotation?.page)
     }
 
     @IBAction private func deleteAction(_ sender: Any) {
@@ -194,6 +197,9 @@ import Cocoa
         annotation?.setButtonWidgetStateString(list[0])
 
         dropdownProjectTextFieldDidMouseDown()
+        
+        annotation?.updateAppearanceStream()
+        pdfView?.setNeedsDisplayAnnotationViewFor(annotation?.page)
     }
     
     @IBAction private func moveUpAction(_ sender: Any) {
@@ -209,6 +215,9 @@ import Cocoa
         annotation?.setButtonWidgetStateString(list[0])
 
         dropdownProjectTextFieldDidMouseDown()
+        
+        annotation?.updateAppearanceStream()
+        pdfView?.setNeedsDisplayAnnotationViewFor(annotation?.page)
     }
 
     @IBAction private func moveDownAction(_ sender: Any) {
@@ -224,6 +233,9 @@ import Cocoa
         annotation?.setButtonWidgetStateString(list[0])
 
         dropdownProjectTextFieldDidMouseDown()
+        
+        annotation?.updateAppearanceStream()
+        pdfView?.setNeedsDisplayAnnotationViewFor(annotation?.page)
     }
 
     private func setChoiceWidgetChoices(_ choices: [String]) {