2
0

Fix persistence of sendInfoDecided.

Don't log it as an event, event logging is probably disabled at this
point anyway.
This commit is contained in:
Maarten Billemont
2020-04-21 13:26:12 -04:00
parent c4f60e325d
commit 1bd654621c
4 changed files with 5 additions and 9 deletions

View File

@@ -61,11 +61,7 @@
[alert addButtonWithTitle:@"Thanks!"];
[alert addButtonWithTitle:@"Disable"];
[alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {
BOOL sendInfo = returnCode != NSAlertSecondButtonReturn;
[[Countly sharedInstance] recordEvent:@"sendInfoDecided" segmentation:@{
@"sendInfo": [@(sendInfo) description],
}];
[MPMacConfig get].sendInfo = @(sendInfo);
[MPMacConfig get].sendInfo = @(returnCode != NSAlertSecondButtonReturn);
[MPMacConfig get].sendInfoDecided = @(YES);
}];
}