diff --git a/Application/AppController.m b/Application/AppController.m index d9669115c..d35dc37d5 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -555,7 +555,7 @@ static AppController *kAppController = nil; NSData *barColor = [colorToValueTransformer reverseTransformedValue:[NSColor colorWithSRGBRed:1.0 green:0.5 blue:0 alpha:1.0]]; NSData *dotColor = [colorToValueTransformer reverseTransformedValue:[NSColor systemRedColor]]; - [userDefaultsValuesDict setObject:@(YES) forKey:@"spectrumSceneKit"]; + [userDefaultsValuesDict setObject:@(YES) forKey:@"spectrumSceneKit"]; [userDefaultsValuesDict setObject:barColor forKey:@"spectrumBarColor"]; [userDefaultsValuesDict setObject:dotColor forKey:@"spectrumDotColor"]; diff --git a/Visualization/SpectrumViewSK.m b/Visualization/SpectrumViewSK.m index cc8290442..c69e60a81 100644 --- a/Visualization/SpectrumViewSK.m +++ b/Visualization/SpectrumViewSK.m @@ -48,8 +48,8 @@ extern NSString *CogPlaybackDidStopNotficiation; @implementation SpectrumViewSK + (SpectrumViewSK *)createGuardWithFrame:(NSRect)frame { - if (![NSUserDefaults.standardUserDefaults boolForKey:@"spectrumSceneKit"]) - return nil; + if (![NSUserDefaults.standardUserDefaults boolForKey:@"spectrumSceneKit"]) + return nil; do { if(@available(macOS 11.0, *)) {