mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-22 13:34:44 +00:00
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:
parent
235f7ac9fe
commit
670e376e9e
@ -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;
|
||||
|
@ -91,7 +91,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
|
||||
- (id)init {
|
||||
if ((self = [super init])) {
|
||||
_delegate = nil;
|
||||
_showAlwaysButton = NO;
|
||||
_showAlwaysButton = YES;
|
||||
_isSetup = NO;
|
||||
|
||||
_plCrashReporter = nil;
|
||||
|
Loading…
x
Reference in New Issue
Block a user