Explorar o código

App Delegate: display 'Always Send' button within the crash log reporter

Note that the API documentation is inaccurate. This button is disabled by default instead of enabled.
Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
76ab5089ca
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      Sources/VLCAppDelegate.m

+ 5 - 3
Sources/VLCAppDelegate.m

@@ -60,9 +60,11 @@
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
-    [[BWQuincyManager sharedQuincyManager] setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
-    [[BWQuincyManager sharedQuincyManager] setDelegate:self];
-    [[BWQuincyManager sharedQuincyManager] setFeedbackActivated:YES];
+    BWQuincyManager *quincyManager = [BWQuincyManager sharedQuincyManager];
+    [quincyManager setSubmissionURL:@"http://crash.videolan.org/crash_v200.php"];
+    [quincyManager setDelegate:self];
+    [quincyManager setShowAlwaysButton:YES];
+    [quincyManager setFeedbackActivated:YES];
 
     /* clean caches on launch (since those are used for wifi upload only) */
     NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);