flutter: Show level up dialog only humanVsAi

This commit is contained in:
Calcitem 2021-05-02 00:08:02 +08:00
parent 73528be045
commit b52a4e28a7
1 changed files with 2 additions and 1 deletions

View File

@ -519,7 +519,8 @@ class _GamePageState extends State<GamePage> with RouteAware {
return;
}
if (result == GameResult.win) {
if (result == GameResult.win &&
Game.instance.engineType == EngineType.humanVsAi) {
showDialog(
context: context,
barrierDismissible: true,