|
@@ -66,7 +66,13 @@ class KMCompareFilesConfig {
|
|
|
}
|
|
|
|
|
|
func isCompareText() -> Bool {
|
|
|
- return UserDefaults.standard.bool(forKey: PDFCompareISCompareTextFilesKey)
|
|
|
+ if UserDefaults.standard.object(forKey: PDFCompareISCompareTextFilesKey) != nil {
|
|
|
+ return UserDefaults.standard.bool(forKey: PDFCompareISCompareTextFilesKey)
|
|
|
+ } else {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func setIsCompareImage(_ isCompareImage: Bool) {
|
|
@@ -74,7 +80,11 @@ class KMCompareFilesConfig {
|
|
|
}
|
|
|
|
|
|
func isCompareImage() -> Bool {
|
|
|
- return UserDefaults.standard.bool(forKey: PDFCompareISCompareImageFilesKey)
|
|
|
+ if UserDefaults.standard.object(forKey: PDFCompareISCompareImageFilesKey) != nil {
|
|
|
+ return UserDefaults.standard.bool(forKey: PDFCompareISCompareImageFilesKey)
|
|
|
+ } else {
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func setInsertColor(_ insertColor: NSColor?) {
|