mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 20:49:26 +00:00
fixed #165 Password generator is reseted if opened as single window not via generate button on entry
This commit is contained in:
@@ -108,13 +108,18 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) {
|
||||
[self.symbolsButton setTag:MPPasswordCharactersSymbols];
|
||||
|
||||
[self _resetCharacters];
|
||||
[self _generatePassword:nil];
|
||||
[self _generatePassword:self];
|
||||
}
|
||||
|
||||
- (void)reset {
|
||||
[self _resetCharacters];
|
||||
[self _generatePassword:self];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Actions
|
||||
|
||||
- (IBAction)_generatePassword:(id)sender {
|
||||
- (IBAction)_generatePassword:(id)sender {
|
||||
if(_useCustomString) {
|
||||
if([[_customCharactersTextField stringValue] length] > 0) {
|
||||
self.password = [[_customCharactersTextField stringValue] passwordWithLength:_passwordLength];
|
||||
|
||||
Reference in New Issue
Block a user