[Fix] Fix Smile Pause

This commit is contained in:
2026-06-07 00:41:35 +07:00
parent 6c9cdaf67d
commit e487795e6f
6 changed files with 42 additions and 40 deletions
@@ -130,7 +130,7 @@ namespace Minesweeper.Presentation.Presenters
private void OnPauseChanged(bool isPaused)
{
if (isPaused && gameStateService.Current == GameState.Playing)
if (isPaused && CanPause(gameStateService.Current))
{
pauseView.Show();
}
@@ -189,5 +189,10 @@ namespace Minesweeper.Presentation.Presenters
{
commandDispatcher.Dispatch(new PauseCommand());
}
private static bool CanPause(GameState state)
{
return state == GameState.Preparing || state == GameState.Playing;
}
}
}