From 126c962a982ab5bd01544ee6cf58646a5a21e35c Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 21 Jun 2014 23:04:56 -0400 Subject: [PATCH] Disable cloudSwitch when iCloud is unavailable. --- MasterPassword/ObjC/iOS/MPSetupViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MasterPassword/ObjC/iOS/MPSetupViewController.m b/MasterPassword/ObjC/iOS/MPSetupViewController.m index 16ade0de..9d4f6abf 100644 --- a/MasterPassword/ObjC/iOS/MPSetupViewController.m +++ b/MasterPassword/ObjC/iOS/MPSetupViewController.m @@ -26,6 +26,8 @@ [super viewDidAppear:animated]; + self.cloudSwitch.enabled = [[MPAppDelegate_Shared get].storeManager cloudAvailable]; + if (self.cloudSwitch && [[MPiOSConfig get].iCloudDecided boolValue]) self.cloudSwitch.on = [[MPiOSConfig get].iCloudEnabled boolValue]; if (self.rememberLoginSwitch)