소스 검색

【幻灯片】幻灯片undo方法问题优化

dinglingui 5 달 전
부모
커밋
1c03a5df86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PDF Office/PDF Master/Class/PDFWindowController/MainWindowController/KMPresentationTopViewController.swift

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/MainWindowController/KMPresentationTopViewController.swift

@@ -190,7 +190,7 @@ public class KMPresentationTopViewController: NSViewController, KMDrawViewDelega
     }
     
     public func drawView(_ drawView: KMDrawView!, didDrawEnd point: CGPoint) {
-        
+        undoButton.isEnabled = ((pdfView?.presentationDrawView.canUndo()) == true)
     }
 
 }