Fix testcase players pausing on window unfocus

This commit is contained in:
smoogipoo
2019-05-10 15:39:25 +09:00
parent 5fa721fdab
commit 7c105fd99f
11 changed files with 36 additions and 28 deletions

View File

@ -122,14 +122,12 @@ namespace osu.Game.Screens.Play
{
base.LoadComplete();
replayLoaded.ValueChanged += replayLoadedValueChanged;
replayLoaded.TriggerChange();
replayLoaded.BindValueChanged(replayLoadedValueChanged, true);
}
private void replayLoadedValueChanged(ValueChangedEvent<bool> e)
{
PlayerSettingsOverlay.ReplayLoaded = e.NewValue;
HoldToQuit.PauseOnFocusLost = !e.NewValue;
if (e.NewValue)
{