浏览代码

move manage keys to autocrypt-section as 'advanced'

B. Petersen 5 年之前
父节点
当前提交
8701fd2832
共有 1 个文件被更改,包括 5 次插入10 次删除
  1. 5 10
      deltachat-ios/Controller/SettingsController.swift

+ 5 - 10
deltachat-ios/Controller/SettingsController.swift

@@ -217,21 +217,16 @@ internal final class SettingsViewController: QuickTableViewController {
                                 }
                                 }
                     }),
                     }),
                     TapActionRow(text: String.localized("autocrypt_send_asm_title"), action: { [weak self] in self?.sendAsm($0) }),
                     TapActionRow(text: String.localized("autocrypt_send_asm_title"), action: { [weak self] in self?.sendAsm($0) }),
+                    TapActionRow(text: String.localized("menu_advanced"),
+                                  action: { [weak self] in self?.showKeyManagementDialog($0) }),
                 ],
                 ],
                 footer: String.localized("autocrypt_explain")
                 footer: String.localized("autocrypt_explain")
             ),
             ),
 
 
             Section(
             Section(
-                title: String.localized("pref_backup"),
-                rows: [
-                    TapActionRow(text: String.localized("export_backup_desktop"), action: { [weak self] in self?.createBackup($0) }),
-                ],
-                footer: String.localized("pref_backup_explain")
-            ),
-            Section(
-                title: String.localized("pref_other"),
+                title: nil,
                 rows: [
                 rows: [
-                    TapActionRow(text: String.localized("pref_manage_keys"), action: { [weak self] in self?.showKeyManagementDialog($0) }),
+                    TapActionRow(text: String.localized("pref_backup"), action: { [weak self] in self?.createBackup($0) }),
                 ],
                 ],
                 footer: String.localized("pref_backup_explain")
                 footer: String.localized("pref_backup_explain")
             ),
             ),
@@ -269,7 +264,7 @@ internal final class SettingsViewController: QuickTableViewController {
     }
     }
 
 
     private func showKeyManagementDialog(_: Row) {
     private func showKeyManagementDialog(_: Row) {
-        let alert = UIAlertController(title: nil, message: nil, preferredStyle: .safeActionSheet)
+        let alert = UIAlertController(title: String.localized("pref_manage_keys"), message: nil, preferredStyle: .safeActionSheet)
         alert.addAction(UIAlertAction(title: String.localized("pref_managekeys_export_secret_keys"), style: .default, handler: { _ in
         alert.addAction(UIAlertAction(title: String.localized("pref_managekeys_export_secret_keys"), style: .default, handler: { _ in
             self.dismiss(animated: true, completion: nil)
             self.dismiss(animated: true, completion: nil)
             self.startImex(what: DC_IMEX_EXPORT_SELF_KEYS)
             self.startImex(what: DC_IMEX_EXPORT_SELF_KEYS)