mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #838 from MrTheMake/playsongselect-exit-fix
Unregister OnBeatmapChanged() when exiting song selection
This commit is contained in:
commit
9a40470298
@ -131,7 +131,15 @@ namespace osu.Game.Screens
|
|||||||
Background.Exit();
|
Background.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
return base.OnExiting(next);
|
if (base.OnExiting(next))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
// while this is not necessary as we are constructing our own bindable, there are cases where
|
||||||
|
// the GC doesn't run as fast as expected and this is triggered post-exit.
|
||||||
|
// added to resolve https://github.com/ppy/osu/issues/829
|
||||||
|
beatmap.ValueChanged -= OnBeatmapChanged;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user