Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
76ab5089ca
1 zmenil súbory, kde vykonal 5 pridanie a 3 odobranie
  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);