Polish the code
- Move somethings from view controller to the model "PasswordStore" - Simplify the logic of PasswordsViewController (especially about reloadTableView) - Mark many variables/methods private
This commit is contained in:
parent
95b3a7fcd3
commit
2b5c5cad97
3 changed files with 65 additions and 79 deletions
|
|
@ -140,7 +140,6 @@ class SettingsTableViewController: UITableViewController {
|
|||
}
|
||||
})
|
||||
DispatchQueue.main.async {
|
||||
self.passwordStore.updatePasswordEntityCoreData()
|
||||
Defaults[.lastUpdatedTime] = Date()
|
||||
Defaults[.gitRepositoryURL] = URL(string: gitRepostiroyURL)
|
||||
Defaults[.gitRepositoryUsername] = username
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue