Added type as change source

This commit is contained in:
Michael Starke
2021-02-03 13:21:02 +01:00
parent 5b6483fdab
commit 92592a8049

View File

@@ -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
*/