Change the default of crashmanagers showAlways property to YES

This results in crash report alerts by default showing the `Always` button, so they will never be asked again and future crash reports will be send automatically.
This commit is contained in:
Andreas Linde 2014-01-12 21:08:53 +01:00
parent 235f7ac9fe
commit 670e376e9e
2 changed files with 6 additions and 6 deletions

View File

@ -127,10 +127,9 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerStatus) {
sending each crash report or send crash reportings automatically without sending each crash report or send crash reportings automatically without
asking. asking.
The default value is `BITCrashManagerStatusAlwaysAsk`. You can allow the user The default value is `BITCrashManagerStatusAlwaysAsk`. The user can switch to
to switch from `BITCrashManagerStatusAlwaysAsk` to `BITCrashManagerStatusAutoSend` by choosing "Always" in the dialog (since
`BITCrashManagerStatusAutoSend` by setting `showAlwaysButton` `showAlwaysButton` default is _YES_).
to _YES_.
The current value is always stored in User Defaults with the key The current value is always stored in User Defaults with the key
`BITCrashManagerStatus`. `BITCrashManagerStatus`.
@ -200,8 +199,9 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerStatus) {
If If `crashManagerStatus` is set to `BITCrashManagerStatusAutoSend`, this property If If `crashManagerStatus` is set to `BITCrashManagerStatusAutoSend`, this property
has no effect, since no alert will be presented. has no effect, since no alert will be presented.
Default: _YES_
@warning This will cause the dialog not to show the alert description text landscape mode!
@see crashManagerStatus @see crashManagerStatus
*/ */
@property (nonatomic, assign, getter=shouldShowAlwaysButton) BOOL showAlwaysButton; @property (nonatomic, assign, getter=shouldShowAlwaysButton) BOOL showAlwaysButton;

View File

@ -91,7 +91,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
- (id)init { - (id)init {
if ((self = [super init])) { if ((self = [super init])) {
_delegate = nil; _delegate = nil;
_showAlwaysButton = NO; _showAlwaysButton = YES;
_isSetup = NO; _isSetup = NO;
_plCrashReporter = nil; _plCrashReporter = nil;