From e05dfa66b8b50178ce11c5c6df33632a7b44276d Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Mon, 3 Nov 2025 10:41:53 +0100 Subject: [PATCH] v1.2.62 --- PadelClub.xcodeproj/project.pbxproj | 4 ++-- .../Views/Tournament/Screen/TableStructureView.swift | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) 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) + } } }