mirror of
https://github.com/MacPass/MacPass.git
synced 2026-02-02 05:18:15 +00:00
Added type as change source
This commit is contained in:
@@ -31,7 +31,9 @@ typedef NS_ENUM(NSUInteger, MPOTPUpdateSource) {
|
|||||||
MPOTPUpdateSourceSecret,
|
MPOTPUpdateSourceSecret,
|
||||||
MPOTPUpdateSourceAlgorithm,
|
MPOTPUpdateSourceAlgorithm,
|
||||||
MPOTPUpdateSourceTimeSlice,
|
MPOTPUpdateSourceTimeSlice,
|
||||||
|
MPOTPUpdateSourceType,
|
||||||
MPOTPUpdateSourceEntry
|
MPOTPUpdateSourceEntry
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef NS_ENUM(NSUInteger, MPOTPType) {
|
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 {
|
- (IBAction)parseQRCode:(id)sender {
|
||||||
if(sender != self.qrCodeImageView) {
|
if(sender != self.qrCodeImageView) {
|
||||||
return; // wrong sender
|
return; // wrong sender
|
||||||
@@ -106,6 +115,7 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
|
|||||||
MPOTPUpdateSourceSecret,
|
MPOTPUpdateSourceSecret,
|
||||||
MPOTPUpdateSourceAlgorithm,
|
MPOTPUpdateSourceAlgorithm,
|
||||||
MPOTPUpdateSourceTimeSlice,
|
MPOTPUpdateSourceTimeSlice,
|
||||||
|
MPOTPUpdateSourceType,
|
||||||
MPOTPUpdateSourceEntry
|
MPOTPUpdateSourceEntry
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user