Переглянути джерело

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

tangchao 10 місяців тому
батько
коміт
646eb22dd2

+ 4 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListView.m

@@ -282,6 +282,10 @@ NSNotificationName const KMPDFViewTableAnnotationDidChangeNotification = @"KMPDF
         }
         
         BOOL highlightFormFiled = [[NSUserDefaults standardUserDefaults] boolForKey:@"kPDFViewHighlightFormFiledKey"];
+        if ([[NSUserDefaults standardUserDefaults] objectForKey:@"kPDFViewHighlightFormFiledKey"] == nil) {
+            [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"kPDFViewHighlightFormFiledKey"];
+            highlightFormFiled = YES;
+        }
 
         if (CFormToolMode == _toolMode && !highlightFormFiled) {
             [[CPDFKitConfig sharedInstance] setEnableFormFieldHighlight:highlightFormFiled];