Simplify logic and add test coverage for remaining case

This commit is contained in:
Dean Herbert
2019-10-10 20:12:47 +09:00
parent a819a64036
commit 5eba33e876
3 changed files with 13 additions and 10 deletions

View File

@ -129,11 +129,9 @@ namespace osu.Game.Overlays
{
var track = current?.Track;
if (track.IsRunning)
{
IsUserPaused = true;
IsUserPaused = true;
if (track?.IsRunning == true)
track.Stop();
}
}
/// <summary>