mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Unbind from room values when disposing
This commit is contained in:
@ -245,5 +245,15 @@ namespace osu.Game.Screens.Multiplayer
|
||||
beatmapArtist.Text = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
Room.Name.ValueChanged -= displayName;
|
||||
Room.Host.ValueChanged -= displayUser;
|
||||
Room.Status.ValueChanged -= displayStatus;
|
||||
Room.Beatmap.ValueChanged -= displayBeatmap;
|
||||
|
||||
base.Dispose(isDisposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user