Remove double handling of restart allowance on results screen (already handled locally)

This commit is contained in:
Dean Herbert 2020-12-24 13:32:35 +09:00
parent 76935b93b6
commit 61a5d3ef4a
1 changed files with 6 additions and 9 deletions

View File

@ -164,18 +164,15 @@ private void load()
{
buttons.Add(new RetryButton { Width = 300 });
if (player?.Configuration.AllowRestart == true)
AddInternal(new HotkeyRetryOverlay
{
AddInternal(new HotkeyRetryOverlay
Action = () =>
{
Action = () =>
{
if (!this.IsCurrentScreen()) return;
if (!this.IsCurrentScreen()) return;
player?.Restart();
},
});
}
player?.Restart();
},
});
}
}