mirror of
https://github.com/ppy/osu
synced 2025-03-18 08:32:26 +00:00
Fix retry count not updating correctly
Regressed with changes to player reference retention logic. Could add a test but the logic is so local now it seems quite redundant.
This commit is contained in:
parent
e848444d74
commit
e0c61f4dc5
@ -309,10 +309,8 @@ namespace osu.Game.Screens.Play
|
||||
if (!this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
var restartCount = player?.RestartCount + 1 ?? 0;
|
||||
|
||||
player = createPlayer();
|
||||
player.RestartCount = restartCount;
|
||||
player.RestartCount = ++restartCount;
|
||||
player.RestartRequested = restartRequested;
|
||||
|
||||
LoadTask = LoadComponentAsync(player, _ => MetadataInfo.Loading = false);
|
||||
@ -428,6 +426,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private Bindable<bool> muteWarningShownOnce;
|
||||
|
||||
private int restartCount;
|
||||
|
||||
private void showMuteWarningIfNeeded()
|
||||
{
|
||||
if (!muteWarningShownOnce.Value)
|
||||
|
Loading…
Reference in New Issue
Block a user