@@ -72,8 +72,10 @@ extension KMBaseWindowController {
// 判断是否为加密文档
if document.isLocked == false {
- completion(true, "")
- return
+ if type == .open {
+ completion(true, "")
+ return
+ }
}
if document.isLocked == false && (document.allowsCopying && document.allowsPrinting) {
@@ -3815,6 +3815,9 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
self.exitDigitalSign()
+ if item.itemIdentifier != KMDocumentViewDisplayToolbarItemIdentifier {
+ self.toolbarController.findItem(KMDocumentViewDisplayToolbarItemIdentifier)?.isSelected = false
if(type != .Form) {
self.removeFromAlertView()