From 85010d66a32b6a15c4a1aeb1746a9a77de114f43 Mon Sep 17 00:00:00 2001 From: Mario Sangiorgio Date: Sat, 8 Aug 2015 01:14:48 +0100 Subject: [PATCH] UI buttons binding --- MacPass/MPPasswordCreatorViewController.m | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MacPass/MPPasswordCreatorViewController.m b/MacPass/MPPasswordCreatorViewController.m index 5d83dff1..f9a47784 100644 --- a/MacPass/MPPasswordCreatorViewController.m +++ b/MacPass/MPPasswordCreatorViewController.m @@ -166,7 +166,6 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) { - (IBAction)_toggleCharacters:(id)sender { self.setDefaultButton.enabled = YES; self.characterFlags ^= [sender tag]; - self.useCustomString = NO; [self reset]; } @@ -326,15 +325,10 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) { if(self.useCustomString) { self.customButton.state = NSOnState; } - self.customCharactersTextField.stringValue = self.customString; self.customCharactersTextField.enabled = self.useCustomString; - self.upperCaseButton.enabled = !self.useCustomString; - self.lowerCaseButton.enabled = !self.useCustomString; - self.numbersButton.enabled = !self.useCustomString; - self.symbolsButton.enabled = !self.useCustomString; /* Set to defaults, if we got nothing */ - if(self.characterFlags == 0) { + if(self.characterFlags == 0 && !self.useCustomString) { self.characterFlags = MPPasswordCharactersAll; }