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