Refactored usage of reset

This commit is contained in:
michael starke
2014-03-23 21:57:34 +01:00
parent fb0007d1c0
commit db89bdd9cf

View File

@@ -107,8 +107,7 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) {
[self.lowerCaseButton setTag:MPPasswordCharactersLowerCase]; [self.lowerCaseButton setTag:MPPasswordCharactersLowerCase];
[self.symbolsButton setTag:MPPasswordCharactersSymbols]; [self.symbolsButton setTag:MPPasswordCharactersSymbols];
[self _resetCharacters]; [self reset];
[self _generatePassword:self];
} }
- (void)reset { - (void)reset {
@@ -133,8 +132,7 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) {
- (IBAction)_toggleCharacters:(id)sender { - (IBAction)_toggleCharacters:(id)sender {
_characterFlags ^= [sender tag]; _characterFlags ^= [sender tag];
self.useCustomString = NO; self.useCustomString = NO;
[self _resetCharacters]; [self reset];
[self _generatePassword:nil];
} }
- (IBAction)_usePassword:(id)sender { - (IBAction)_usePassword:(id)sender {