Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrebane committed Jan 3, 2024
1 parent 92d2bf9 commit c0ac9af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MoppApp/MoppApp/SettingsTSACertCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class SettingsTSACertCell: UITableViewCell {
}

func populate() {
self.certificate = TSACertUtil.getCertificate()
self.certificate = CertUtil.getCertificate(folder: SettingsTSACertCell.tsaFileFolder, fileName: DefaultsHelper.tsaCertFileName ?? "")
updateUI()
}

Expand Down Expand Up @@ -128,7 +128,7 @@ class SettingsTSACertCell: UITableViewCell {
}

func removeCertificate() {
TSACertUtil.removeCertificate()
CertUtil.removeCertificate(folder: SettingsTSACertCell.tsaFileFolder, fileName: DefaultsHelper.tsaCertFileName ?? "")
certificate = nil
updateUI()
}
Expand Down
7 changes: 4 additions & 3 deletions MoppApp/MoppApp/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class SettingsViewController: MoppViewController {
kind: .sivaCert,
title: L(.settingsSivaServiceTitle),
placeholderText: NSAttributedString(string: L(.settingsSivaServiceTitle)),
value: ""),
Field(
id: .resetSettings,
kind: .resetButton,
Expand Down Expand Up @@ -345,9 +346,9 @@ extension SettingsViewController: SettingsResetCellDelegate {
}
}

extension SettingsViewController: SettingsFieldCellDelegate {
func didEndEditingField(_ fieldId: SettingsViewController.FieldId, with value:String) {
switch fieldId {
extension SettingsViewController: SettingsCellDelegate {
func didStartEditingField(_ field: FieldId, _ indexPath: IndexPath) {
switch field {
case .rpuuid:
currentlyEditingCell = indexPath
break
Expand Down

0 comments on commit c0ac9af

Please sign in to comment.