#313: removing photos from Settings

This commit is contained in:
Patrick Santana 2013-06-06 12:31:54 -07:00
parent ad37e3e406
commit f99b756505
5 changed files with 12 additions and 35 deletions

View file

@ -20,8 +20,6 @@
@interface Constants : NSObject
extern NSString * const kAppInitialized;
extern NSString * const kPhotosSaveCameraRollOrSnapshot;
extern NSString * const kPhotosSaveFiltered;
extern NSString * const kPhotosArePrivate;
extern NSString * const kTroveboxServer;
extern NSString * const kTroveboxNameUser;

View file

@ -24,10 +24,6 @@
// Const for the app initialization variable
NSString * const kAppInitialized = @"app_initialized";
// Save original to Library - NSUserDefaults name
NSString * const kPhotosSaveCameraRollOrSnapshot=@"photos_save_camera_roll_or_snapshot";
// Save filtered to Library - NSUserDefaults name
NSString * const kPhotosSaveFiltered=@"photos_save_filtered";
// Privacy - NSUserDefaults name
NSString * const kPhotosArePrivate=@"photos_are_private";
// NSUserDefault variable name for the Trovebox Server

View file

@ -50,11 +50,6 @@
* set the initial configuration for the user properties
*/
if (standardUserDefaults) {
// Save original to Library
[standardUserDefaults setBool:YES forKey:kPhotosSaveCameraRollOrSnapshot];
// Save filtered to Library
[standardUserDefaults setBool:YES forKey:kPhotosSaveFiltered];
// Privacy
[standardUserDefaults setBool:YES forKey:kPhotosArePrivate];

View file

@ -23,7 +23,8 @@
@interface JobUploaderController (){
BOOL running;
}
- (void) executeJob;
- (void) executeUploadJob;
- (void) executeSyncJob;
@end
@ -53,8 +54,11 @@
while (running) {
// sleep for 3 seconds
[NSThread sleepForTimeInterval:3];
// execute the method
[self executeJob];
[self executeUploadJob];
// check if users enabled Sync
}
}@catch (NSException *exception) {
NSLog(@"Error in the job %@", [exception description]);
@ -74,8 +78,12 @@
return running;
}
- (void) executeSyncJob
{
- (void) executeJob
}
- (void) executeUploadJob
{
dispatch_async(dispatch_get_main_queue(), ^{
#ifdef DEVELOPMENT_ENABLED

View file

@ -26,26 +26,6 @@
<key>Title</key>
<string>Photos</string>
</dict>
<dict>
<key>DefaultValue</key>
<true/>
<key>Key</key>
<string>photos_save_camera_roll_or_snapshot</string>
<key>Title</key>
<string>Save original to Library</string>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
<dict>
<key>DefaultValue</key>
<true/>
<key>Key</key>
<string>photos_save_filtered</string>
<key>Title</key>
<string>Save filtered to Library</string>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>