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
asking.
The default value is `BITCrashManagerStatusAlwaysAsk`. You can allow the user
to switch from `BITCrashManagerStatusAlwaysAsk` to
`BITCrashManagerStatusAutoSend` by setting `showAlwaysButton`
to _YES_.
The default value is `BITCrashManagerStatusAlwaysAsk`. The user can switch to
`BITCrashManagerStatusAutoSend` by choosing "Always" in the dialog (since
`showAlwaysButton` default is _YES_).
The current value is always stored in User Defaults with the key
`BITCrashManagerStatus`.
@ -200,8 +199,9 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerStatus) {
If If `crashManagerStatus` is set to `BITCrashManagerStatusAutoSend`, this property
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
*/
@property (nonatomic, assign, getter=shouldShowAlwaysButton) BOOL showAlwaysButton;

View File

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