Rubberband: Disable by default correctly
The attempt to disable it by default only for new installs failed, as changing the default after restarting with consent achieved, resulted in the value changing as well, as is the way of changing defaults if the user has never changed them. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
3b14269e12
commit
e8775e17b0
2 changed files with 1 additions and 5 deletions
|
@ -130,7 +130,7 @@ NSString *CogPlaybackDidStopNotificiation = @"CogPlaybackDidStopNotificiation";
|
||||||
@"enableHrtf": @(NO),
|
@"enableHrtf": @(NO),
|
||||||
@"enableHeadTracking": @(NO),
|
@"enableHeadTracking": @(NO),
|
||||||
@"enableHDCD": @(NO),
|
@"enableHDCD": @(NO),
|
||||||
/*@"rubberbandEngine": @"faster",*/
|
@"rubberbandEngine": @"disabled",
|
||||||
@"rubberbandTransients": @"crisp",
|
@"rubberbandTransients": @"crisp",
|
||||||
@"rubberbandDetector": @"compound",
|
@"rubberbandDetector": @"compound",
|
||||||
@"rubberbandPhase": @"laminar",
|
@"rubberbandPhase": @"laminar",
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
void showSentryConsent(NSWindow *window) {
|
void showSentryConsent(NSWindow *window) {
|
||||||
BOOL askedConsent = [[NSUserDefaults standardUserDefaults] boolForKey:@"sentryAskedConsent"];
|
BOOL askedConsent = [[NSUserDefaults standardUserDefaults] boolForKey:@"sentryAskedConsent"];
|
||||||
if(!askedConsent) {
|
if(!askedConsent) {
|
||||||
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"rubberbandEngine": @"disabled" }];
|
|
||||||
|
|
||||||
[window orderFront:window];
|
[window orderFront:window];
|
||||||
|
|
||||||
NSAlert *alert = [[NSAlert alloc] init];
|
NSAlert *alert = [[NSAlert alloc] init];
|
||||||
|
@ -36,8 +34,6 @@ void showSentryConsent(NSWindow *window) {
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"sentryAskedConsent"];
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"sentryAskedConsent"];
|
||||||
} else {
|
|
||||||
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"rubberbandEngine": @"faster" }];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue