mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Fix the possibility of a double-direction progression bind
This commit is contained in:
@ -41,13 +41,22 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
Progression.ValueChanged += progression =>
|
||||
{
|
||||
if (lastProgression != null)
|
||||
// clear the source from the previous progression.
|
||||
lastProgression.ProgressionSource.Value = null;
|
||||
|
||||
if (progression != null)
|
||||
// set the source on the new progression.
|
||||
progression.ProgressionSource.Value = this;
|
||||
|
||||
lastProgression = progression;
|
||||
};
|
||||
|
||||
ProgressionSource.ValueChanged += source =>
|
||||
{
|
||||
if (source != null)
|
||||
// ennsure no two-way progressions.
|
||||
Progression.Value = null;
|
||||
};
|
||||
}
|
||||
|
||||
public MatchPairing(TournamentTeam team1 = null, TournamentTeam team2 = null)
|
||||
|
Reference in New Issue
Block a user