Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Jul 25, 2024
1 parent 29f27aa commit c436748
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class CertificateCheckController: UITableViewController {
}

private func selectItem(at index: Int? ) {
// TODO: callback to AccountSetupController here
if let oldIndex = selectedIndex {
let cell = tableView.cellForRow(at: IndexPath.init(row: oldIndex, section: 0))
cell?.accessoryType = .none
Expand All @@ -89,7 +90,7 @@ class CertificateCheckController: UITableViewController {
}

@objc private func okButtonPressed() {
dcContext.certificateChecks = currentValue
dcContext.certificateChecks = currentValue // TODO: setting here is too soon
navigationController?.popViewController(animated: true)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ class SecuritySettingsController: UITableViewController {
if let cell = tableView.cellForRow(at: indexPath) {
cell.accessoryType = .checkmark
}
selectedIndex = indexPath.row
selectedIndex = indexPath.row // TODO: callback to AccountSetupController here
}

@objc func okButtonPressed() {
switch securityType {
case .IMAPSecurity:
dcContext.setConfigInt("mail_security", Int(options[selectedIndex]))
dcContext.setConfigInt("mail_security", Int(options[selectedIndex])) // TODO: setting here is too soon
case .SMTPSecurity:
dcContext.setConfigInt("send_security", Int(options[selectedIndex]))
dcContext.setConfigInt("send_security", Int(options[selectedIndex])) // TODO: setting here is too soon
}
navigationController?.popViewController(animated: true)
}
Expand Down

0 comments on commit c436748

Please sign in to comment.