浏览代码

Merge pull request #1445 from deltachat/remove-mvbox-inbox-watch

remove mvbox_watch and inbox_watch
cyBerta 3 年之前
父节点
当前提交
f498e10526
共有 1 个文件被更改,包括 1 次插入23 次删除
  1. 1 23
      deltachat-ios/Controller/AccountSetupController.swift

+ 1 - 23
deltachat-ios/Controller/AccountSetupController.swift

@@ -63,7 +63,7 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         certCheckCell,
         certCheckCell,
         viewLogCell
         viewLogCell
     ]
     ]
-    private lazy var folderCells: [UITableViewCell] = [inboxWatchCell, sentboxWatchCell, mvboxWatchCell, sendCopyToSelfCell, mvboxMoveCell]
+    private lazy var folderCells: [UITableViewCell] = [sentboxWatchCell, sendCopyToSelfCell, mvboxMoveCell]
     private let editView: Bool
     private let editView: Bool
     private var advancedSectionShowing: Bool = false
     private var advancedSectionShowing: Bool = false
     private var providerInfoShowing: Bool = false
     private var providerInfoShowing: Bool = false
@@ -263,17 +263,6 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         return cell
         return cell
     }()
     }()
 
 
-    lazy var inboxWatchCell: SwitchCell = {
-        return SwitchCell(
-            textLabel: String.localized("pref_watch_inbox_folder"),
-            on: dcContext.getConfigBool("inbox_watch"),
-            action: { cell in
-                self.dcAccounts.stopIo()
-                self.dcContext.setConfigBool("inbox_watch", cell.isOn)
-                self.dcAccounts.startIo()
-        })
-    }()
-
     lazy var sentboxWatchCell: SwitchCell = {
     lazy var sentboxWatchCell: SwitchCell = {
         return SwitchCell(
         return SwitchCell(
             textLabel: String.localized("pref_watch_sent_folder"),
             textLabel: String.localized("pref_watch_sent_folder"),
@@ -285,17 +274,6 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         })
         })
     }()
     }()
 
 
-    lazy var mvboxWatchCell: SwitchCell = {
-        return SwitchCell(
-            textLabel: String.localized("pref_watch_mvbox_folder"),
-            on: dcContext.getConfigBool("mvbox_watch"),
-            action: { cell in
-                self.dcAccounts.stopIo()
-                self.dcContext.setConfigBool("mvbox_watch", cell.isOn)
-                self.dcAccounts.startIo()
-        })
-    }()
-
     lazy var sendCopyToSelfCell: SwitchCell = {
     lazy var sendCopyToSelfCell: SwitchCell = {
         return SwitchCell(
         return SwitchCell(
             textLabel: String.localized("pref_send_copy_to_self"),
             textLabel: String.localized("pref_send_copy_to_self"),