Skip to content

Commit

Permalink
move 'Add Another Device' to the position where it is on android
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Mar 16, 2023
1 parent fd7c67b commit ab504a4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions deltachat-ios/Controller/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,28 +184,27 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
}
let profileSection = SectionConfigs(
headerTitle: String.localized("pref_profile_info_headline"),
footerTitle: String.localized("add_another_device_explain"),
cells: [profileCell, addAnotherDeviceCell]
// TODO: move addAnotherDeviceCell down after "Export Backup" (which can go to "Advanced" at some point then)
footerTitle: nil,
cells: [profileCell]
)
let preferencesSection = SectionConfigs(
headerTitle: String.localized("pref_chats_and_media"),
footerTitle: nil,
cells: [showEmailsCell, blockedContactsCell, mediaQualityCell, downloadOnDemandCell,
autodelCell, notificationCell, receiptConfirmationCell, exportBackupCell]
autodelCell, notificationCell, receiptConfirmationCell, selectBackgroundCell, exportBackupCell]
)
let appearanceSection = SectionConfigs(
headerTitle: String.localized("pref_appearance"),
let addAnotherDeviceSection = SectionConfigs(
headerTitle: nil,
footerTitle: nil,
cells: [selectBackgroundCell]
cells: [addAnotherDeviceCell]
)
let helpSection = SectionConfigs(
headerTitle: nil,
footerTitle: appNameAndVersion,
cells: [connectivityCell, advancedCell, helpCell]
)

return [profileSection, preferencesSection, appearanceSection, helpSection]
return [profileSection, preferencesSection, addAnotherDeviceSection, helpSection]
}()

init(dcAccounts: DcAccounts) {
Expand Down

0 comments on commit ab504a4

Please sign in to comment.