Show current TOTP lock state (#80)
This commit is contained in:
@@ -2164,7 +2164,7 @@ private final class TotpListViewController: UITableViewController, MobileTabRoot
|
||||
private func configureLockButton() {
|
||||
let unlocked = (try? authentication?.state().unlocked) == true
|
||||
navigationItem.rightBarButtonItem = UIBarButtonItem(
|
||||
image: UIImage(systemName: unlocked ? "lock.fill" : "lock.open.fill"),
|
||||
image: UIImage(systemName: unlocked ? "lock.open.fill" : "lock.fill"),
|
||||
style: .plain,
|
||||
target: self,
|
||||
action: unlocked ? #selector(lockRequested) : #selector(unlockRequested)
|
||||
|
||||
Reference in New Issue
Block a user