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