Browse Source

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

tangchao 10 months ago
parent
commit
3ab8b8de75

+ 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]) {