Commit d2f6aefd authored by Felix Paul Kühne's avatar Felix Paul Kühne

Settings: add button to unlink from Dropbox (in-app only)

parent 480fae19
......@@ -10,6 +10,7 @@
#import "VLCAppDelegate.h"
#import "VLCPlaylistViewController.h"
#import "IASKSettingsReader.h"
#import <DropboxSDK/DropboxSDK.h>
@implementation VLCSettingsController
......@@ -45,6 +46,11 @@
[self.viewController.navigationController dismissModalViewControllerAnimated:YES];
}
- (void)settingsViewController:(IASKAppSettingsViewController*)sender buttonTappedForSpecifier:(IASKSpecifier*)specifier {
if ([specifier.key isEqualToString:@"UnlinkDropbox"])
[[DBSession sharedSession] unlinkAll];
}
#pragma mark - PAPasscode delegate
- (void)PAPasscodeViewControllerDidCancel:(PAPasscodeViewController *)controller
......
......@@ -166,6 +166,20 @@
<key>DefaultValue</key>
<false/>
</dict>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
<key>Title</key>
<string>SETTINGS_FILE_SYNC</string>
</dict>
<dict>
<key>Key</key>
<string>UnlinkDropbox</string>
<key>Title</key>
<string>SETTINGS_UNLINK_DROPBOX</string>
<key>Type</key>
<string>IASKButtonSpecifier</string>
</dict>
</array>
<key>StringsTable</key>
<string>Root</string>
......
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
......
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
......
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
......
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment