Browse Source

【fix】【Form表单】二级功能点击选中,再次点击要取消。bug修复

tangchao 10 months ago
parent
commit
44e6146a04

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+UI.swift

@@ -164,7 +164,7 @@ extension KMMainViewController: KMToolbarControllerDelegate {
         if (currentType == .eraser) {
             currentType = .ink
         }
-        let isSelected = (currentType == CAnnotationType(rawValue: item.tag) ?? CAnnotationType.unkown) && ((self.listView.toolMode == .noteToolMode) || (self.listView.toolMode == .selfSignMode))
+        let isSelected = (currentType == CAnnotationType(rawValue: item.tag) ?? CAnnotationType.unkown) && ((self.listView.toolMode == .noteToolMode) || (self.listView.toolMode == .selfSignMode) || (self.listView.toolMode == .formToolMode))
         var editSelectd = false
         if self.listView.annotationType == CAnnotationType(rawValue: item.tag) ?? CAnnotationType.unkown && self.listView.toolMode == .editPDFToolMode {
             editSelectd = true

+ 4 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/VerificationManager/VerificationManager.m

@@ -953,6 +953,10 @@ static VerificationManager *__verificationManager = nil;
 #if DEBUG
 @implementation VerificationManager (Test)
 
+//- (ActivityStatus)status {
+//    return ActivityStatusVerification;
+//}
+
 - (void)updateVerificationStatus {
     [self updateStatus:ActivityStatusVerification postNo:true];
 }