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

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

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

Loading…
Cancel
Save