mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 22:19:21 +00:00
Added support for type changes
This commit is contained in:
@@ -61,25 +61,10 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
|
||||
}
|
||||
|
||||
- (IBAction)changeType:(id)sender {
|
||||
/*
|
||||
if(sender != self.typePopUpButton) {
|
||||
return; // wrong sender
|
||||
}
|
||||
MPOTPType type = self.typePopUpButton.selectedItem.tag;
|
||||
switch(type) {
|
||||
case MPOTPTypeRFC:
|
||||
case MPOTPTypeSteam:
|
||||
self.algorithmPopUpButton.enabled = NO;
|
||||
self.digitCountPopUpButton.enabled = NO;
|
||||
self.timeStepStepper.enabled = NO;
|
||||
break;
|
||||
case MPOTPTypeCustom:
|
||||
self.algorithmPopUpButton.enabled = YES;
|
||||
self.digitCountPopUpButton.enabled = YES;
|
||||
self.timeStepStepper.enabled = YES;
|
||||
}
|
||||
[self _updateView:MPOTPUpdateSourceType];
|
||||
*/
|
||||
}
|
||||
|
||||
- (IBAction)changeHashAlgorithm:(id)sender {
|
||||
|
||||
Reference in New Issue
Block a user