浏览代码

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);