Преглед изворни кода

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 пре 11 година
родитељ
комит
76ab5089ca
1 измењених фајлова са 5 додато и 3 уклоњено
  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);