|
|
|
|
@ -599,7 +599,7 @@ struct TableStructureView: View { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private func _save(rebuildEverything: Bool = false) async { |
|
|
|
|
_verifyValueIntegrity() |
|
|
|
|
_verifyValueIntegrity(keepSeedRepartition: true) |
|
|
|
|
let tc = tournament.teamCount |
|
|
|
|
do { |
|
|
|
|
let requirements = Set(updatedElements.compactMap { $0.requiresRebuilding }) |
|
|
|
|
@ -767,7 +767,7 @@ struct TableStructureView: View { |
|
|
|
|
_verifyValueIntegrity() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private func _verifyValueIntegrity() { |
|
|
|
|
private func _verifyValueIntegrity(keepSeedRepartition: Bool = false) { |
|
|
|
|
if teamCount > 128 { |
|
|
|
|
teamCount = 128 |
|
|
|
|
} |
|
|
|
|
@ -810,7 +810,9 @@ struct TableStructureView: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
seedRepartition = HeadManagerView.place(heads: tsPure, teamsInBracket: tf, initialSeedRound: nil) |
|
|
|
|
if keepSeedRepartition == false { |
|
|
|
|
seedRepartition = HeadManagerView.place(heads: tsPure, teamsInBracket: tf, initialSeedRound: nil) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|