main
Razmig Sarkissian 7 days ago
parent 78f31c45d3
commit e05dfa66b8
  1. 4
      PadelClub.xcodeproj/project.pbxproj
  2. 8
      PadelClub/Views/Tournament/Screen/TableStructureView.swift

@ -3272,7 +3272,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.61;
MARKETING_VERSION = 1.2.62;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -3319,7 +3319,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.61;
MARKETING_VERSION = 1.2.62;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

@ -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)
}
}
}

Loading…
Cancel
Save