diff --git a/MacPass/MPTOTPSetupViewController.m b/MacPass/MPTOTPSetupViewController.m index f04bb022..d1353b19 100644 --- a/MacPass/MPTOTPSetupViewController.m +++ b/MacPass/MPTOTPSetupViewController.m @@ -17,6 +17,7 @@ @property (strong) IBOutlet NSTextField *timeStepTextField; @property (strong) IBOutlet NSPopUpButton *digitCountPopUpButton; @property (strong) IBOutlet NSImageView *qrCodeImageView; +@property (strong) IBOutlet NSGridView *gridView; @end @@ -26,6 +27,14 @@ [super viewDidLoad]; // Do view setup here. } + +- (IBAction)toggleDisclosure:(id)sender { + for(NSInteger row = 1; row < self.gridView.numberOfRows; row++) { + NSGridRow *gridRow = [self.gridView rowAtIndex:row]; + gridRow.hidden = !gridRow.hidden; + } +} + - (IBAction)parseQRCode:(id)sender { if(sender != self.qrCodeImageView) { return; // wrong sender diff --git a/MacPass/MPTOTPSetupViewController.xib b/MacPass/MPTOTPSetupViewController.xib index cbe40b34..f5ca8e68 100644 --- a/MacPass/MPTOTPSetupViewController.xib +++ b/MacPass/MPTOTPSetupViewController.xib @@ -10,6 +10,7 @@ + @@ -20,208 +21,220 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - +