mirror of https://github.com/ppy/osu
deal with test
This commit is contained in:
parent
5a5cc523ce
commit
43ead5820a
|
@ -19,9 +19,9 @@ public class FailOverlay : GameplayMenuOverlay
|
|||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AddButton("Save replay and Quit", colours.Blue, () => SaveReplay?.Invoke());
|
||||
AddButton("Retry", colours.YellowDark, () => OnRetry?.Invoke());
|
||||
AddButton("Quit", new Color4(170, 27, 39, 255), () => OnQuit?.Invoke());
|
||||
AddButton("Save replay and Quit", colours.Blue, () => SaveReplay?.Invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1044,18 +1044,19 @@ public override bool OnExiting(ScreenExitEvent e)
|
|||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
// Don't know if prepareScoreForResults useful
|
||||
private async void saveReplay()
|
||||
private void saveReplay()
|
||||
{
|
||||
var scoreCopy = Score.DeepClone();
|
||||
|
||||
try
|
||||
{
|
||||
await ImportScore(scoreCopy).ConfigureAwait(false);
|
||||
ImportScore(scoreCopy).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error(ex, @"Score import failed!");
|
||||
}
|
||||
|
||||
PerformExit(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue