|
@@ -34,27 +34,27 @@ class KMGuideInfoWindowController: NSWindowController {
|
|
|
|
|
|
//MARK: Static Method
|
|
|
@objc static func availableShow(_ type: KMGuideInfoType) -> Bool {
|
|
|
-// if type == .openFileNormal {
|
|
|
-// if (UserDefaults.standard.object(forKey: kKMGuideInfoOpenFileNormalKey) == nil) {
|
|
|
-// return true
|
|
|
-// }
|
|
|
-// } else if type == .digitalSignGuide {
|
|
|
-// if (UserDefaults.standard.object(forKey: kKMGuideInfoDigitalSignKey) == nil) {
|
|
|
-// return true
|
|
|
-// }
|
|
|
-// } else if type == .pdfCompareGuide {
|
|
|
-// if (UserDefaults.standard.object(forKey: kKMGuideInfoPDFCompareKey) == nil) {
|
|
|
-// return true
|
|
|
-// }
|
|
|
-// } else if type == .convertGuide {
|
|
|
-// if (UserDefaults.standard.object(forKey: kKMGuideInfoFileConvertKey) == nil) {
|
|
|
-// return true
|
|
|
-// }
|
|
|
-// } else if type == .customColor {
|
|
|
-// if (UserDefaults.standard.object(forKey: kKMGuideInfoCustomColorKey) == nil) {
|
|
|
-// return true
|
|
|
-// }
|
|
|
-// }
|
|
|
+ if type == .openFileNormal {
|
|
|
+ if (UserDefaults.standard.object(forKey: kKMGuideInfoOpenFileNormalKey) == nil) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ } else if type == .digitalSignGuide {
|
|
|
+ if (UserDefaults.standard.object(forKey: kKMGuideInfoDigitalSignKey) == nil) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ } else if type == .pdfCompareGuide {
|
|
|
+ if (UserDefaults.standard.object(forKey: kKMGuideInfoPDFCompareKey) == nil) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ } else if type == .convertGuide {
|
|
|
+ if (UserDefaults.standard.object(forKey: kKMGuideInfoFileConvertKey) == nil) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ } else if type == .customColor {
|
|
|
+ if (UserDefaults.standard.object(forKey: kKMGuideInfoCustomColorKey) == nil) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
return false
|
|
|
}
|
|
|
|