Show current TOTP lock state (#80)

This commit is contained in:
2026-08-12 20:19:25 +02:00
parent b5571fcc5b
commit 1ce7b7814b

View File

@@ -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)