Passcode lock

This commit is contained in:
Yishi Lin 2018-04-10 00:14:35 +08:00
parent fe80ed3dc8
commit 433562584e
6 changed files with 125 additions and 78 deletions

View file

@ -17,9 +17,6 @@ class OpenSourceComponentsTableViewController: BasicStaticTableViewController {
["KeychainAccess",
"https://github.com/kishikawakatsumi/KeychainAccess",
"https://github.com/kishikawakatsumi/KeychainAccess/blob/master/LICENSE"],
["PasscodeLock",
"https://github.com/zahlz/SwiftPasscodeLock",
"https://github.com/zahlz/SwiftPasscodeLock/blob/master/LICENSE.txt"],
["ObjectiveGit",
"https://github.com/libgit2/objective-git",
"https://github.com/libgit2/objective-git/blob/master/LICENSE"],

View file

@ -159,9 +159,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
setPGPKeyTableViewCellDetailText()
setPasswordRepositoryTableViewCellDetailText()
setPasscodeLockCell()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.passcodeLockPresenter = PasscodeLockPresenter(mainWindow: appDelegate.window)
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
@ -262,8 +259,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
passcodeRemoveViewController.successCallback = {
self?.passcodeLock.delete()
self?.setPasscodeLockCell()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.passcodeLockPresenter = PasscodeLockPresenter(mainWindow: appDelegate.window)
}
self?.present(passcodeRemoveViewController, animated: true, completion: nil)
}