Make download buttons disappear instead of closing overlay.

- Also unbind event handlers
- Remove unused field
This commit is contained in:
naoey
2017-11-16 15:36:22 +05:30
parent df53b884ea
commit 97c5956083
3 changed files with 23 additions and 10 deletions

View File

@ -107,6 +107,12 @@ namespace osu.Game.Overlays.Direct
beatmaps.BeatmapDownloadBegan += attachDownload;
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
beatmaps.BeatmapDownloadBegan -= attachDownload;
}
protected override void Update()
{
base.Update();