Wired up TOTPSetup pop over

This commit is contained in:
Michael Starke
2020-12-23 01:33:53 +01:00
parent 9fe9c6a41d
commit 90a0aef2cc
4 changed files with 23 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
#import "MPAddCustomFieldContextMenuDelegate.h"
#import "KeePassKit/KeePassKit.h"
#import "MPEntryInspectorViewController.h"
/*
HmacOtp-Secret (the UTF-8 representation of the value is the secret),
@@ -66,8 +67,8 @@
/* Time OPT*/
- (void)_setupTOTPMenuItemsToMenu:(NSMenu *)menu {
NSMenuItem *setupItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"SETUP_TOTP_SETTINGS", @"Menu item title editing TOTP settings") action:@selector(_setupTOTPSettings:) keyEquivalent:@""];
setupItem.target = self;
NSMenuItem *setupItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"SETUP_TOTP_SETTINGS", @"Menu item title editing TOTP settings") action:@selector(showOTPSetup:) keyEquivalent:@""];
setupItem.target = self.viewController;
[menu addItem:setupItem];
}