From 92592a8049fadbc6bcb6b918e70c32a5b2f648b5 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Wed, 3 Feb 2021 13:21:02 +0100 Subject: [PATCH] Added type as change source --- MacPass/MPTOTPSetupViewController.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MacPass/MPTOTPSetupViewController.m b/MacPass/MPTOTPSetupViewController.m index 2e881a7b..80e76dce 100644 --- a/MacPass/MPTOTPSetupViewController.m +++ b/MacPass/MPTOTPSetupViewController.m @@ -31,7 +31,9 @@ typedef NS_ENUM(NSUInteger, MPOTPUpdateSource) { MPOTPUpdateSourceSecret, MPOTPUpdateSourceAlgorithm, MPOTPUpdateSourceTimeSlice, + MPOTPUpdateSourceType, MPOTPUpdateSourceEntry + }; typedef NS_ENUM(NSUInteger, MPOTPType) { @@ -92,6 +94,13 @@ typedef NS_ENUM(NSUInteger, MPOTPType) { } } +- (IBAction)changeType:(id)sender { + if(sender != self.typePopUpButton) { + return; // wrong sender + } + [self _updateView:MPOTPUpdateSourceType]; +} + - (IBAction)parseQRCode:(id)sender { if(sender != self.qrCodeImageView) { return; // wrong sender @@ -106,6 +115,7 @@ typedef NS_ENUM(NSUInteger, MPOTPType) { MPOTPUpdateSourceSecret, MPOTPUpdateSourceAlgorithm, MPOTPUpdateSourceTimeSlice, + MPOTPUpdateSourceType, MPOTPUpdateSourceEntry */