mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 10:32:26 +00:00
Refactored usage of reset
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user