pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 2132 4289912d9366
parent 2067 a4fb0b2e9cd9
child 2181 d8d820586163
equal deleted inserted replaced
2131:89c3294029e6 2132:4289912d9366
    73 
    73 
    74     func initialConfig() {
    74     func initialConfig() {
    75         guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else {
    75         guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else {
    76             return
    76             return
    77         }
    77         }
    78 
    78         if Account.all().isEmpty {
       
    79             performSegue(withIdentifier:.segueAddNewAccount, sender: self)
       
    80         }
    79         if config == nil {
    81         if config == nil {
    80             config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    82             config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    81         } else if config?.folder != nil {
    83         }
    82 
    84         self.title = config?.folder?.realName
    83         }
       
    84         if Account.all().isEmpty {
       
    85             performSegue(withIdentifier:.segueAddNewAccount, sender: self)
       
    86         }
       
    87     }
    85     }
    88 
    86 
    89     func addSearchBar() {
    87     func addSearchBar() {
    90         searchController.searchResultsUpdater = self
    88         searchController.searchResultsUpdater = self
    91         searchController.dimsBackgroundDuringPresentation = false
    89         searchController.dimsBackgroundDuringPresentation = false