mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +00:00
Clear key file button not working at password input. Fixes #184
This commit is contained in:
@@ -103,7 +103,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)resetKeyFile:(id)sender {
|
- (IBAction)resetKeyFile:(id)sender {
|
||||||
[self _selectKeyURL];
|
/* If the reset was triggerd by ourselves we want to preselct the keyfile */
|
||||||
|
if(sender == self) {
|
||||||
|
[self _selectKeyURL];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[self.keyPathControl setURL:nil];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_reset {
|
- (void)_reset {
|
||||||
@@ -112,7 +118,7 @@
|
|||||||
[self.passwordTextField setStringValue:@""];
|
[self.passwordTextField setStringValue:@""];
|
||||||
[self.errorInfoTextField setHidden:YES];
|
[self.errorInfoTextField setHidden:YES];
|
||||||
[self.errorImageView setHidden:YES];
|
[self.errorImageView setHidden:YES];
|
||||||
[self resetKeyFile:nil];
|
[self resetKeyFile:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_selectKeyURL {
|
- (void)_selectKeyURL {
|
||||||
|
|||||||
Reference in New Issue
Block a user