[iPad] Fixes incorrectly indented rows on MelonDS core settings screen

This commit is contained in:
Riley Testut 2023-11-02 14:37:46 -05:00
parent a87fea63ad
commit 41bb827d7b

View File

@ -402,7 +402,7 @@ extension MelonDSCoreSettingsViewController
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath)
{
guard let core = Settings.preferredCore(for: .ds) else { return }
guard let core = Settings.preferredCore(for: .ds), let section = Section(rawValue: indexPath.section), section == .general else { return }
let key = DeltaCoreMetadata.Key.allCases[indexPath.row]
let lastKey = DeltaCoreMetadata.Key.allCases.reversed().first { core.metadata?[$0] != nil }
@ -414,7 +414,7 @@ extension MelonDSCoreSettingsViewController
}
else
{
cell.separatorInset.left = self.view.layoutMargins.left
cell.separatorInset.left = cell.layoutMargins.left
}
}