diff --git a/PadelClub.xcodeproj/project.pbxproj b/PadelClub.xcodeproj/project.pbxproj index 73b2e23..13c1a71 100644 --- a/PadelClub.xcodeproj/project.pbxproj +++ b/PadelClub.xcodeproj/project.pbxproj @@ -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 = ""; diff --git a/PadelClub/Views/Tournament/Screen/TableStructureView.swift b/PadelClub/Views/Tournament/Screen/TableStructureView.swift index bb9e9a7..930b68e 100644 --- a/PadelClub/Views/Tournament/Screen/TableStructureView.swift +++ b/PadelClub/Views/Tournament/Screen/TableStructureView.swift @@ -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 } @@ -809,8 +809,10 @@ struct TableStructureView: View { groupStageAdditionalQualified = 0 } } - - seedRepartition = HeadManagerView.place(heads: tsPure, teamsInBracket: tf, initialSeedRound: nil) + + if keepSeedRepartition == false { + seedRepartition = HeadManagerView.place(heads: tsPure, teamsInBracket: tf, initialSeedRound: nil) + } } }