flutter: Do not show Game Result Dialog if isAutoRestart enabled

This commit is contained in:
Calcitem 2021-04-10 11:49:51 +08:00
parent 7258de5cf6
commit 82e406308f
1 changed files with 4 additions and 2 deletions

View File

@ -29,8 +29,8 @@ import 'package:sanmill/mill/game.dart';
import 'package:sanmill/mill/mill.dart';
import 'package:sanmill/mill/types.dart';
import 'package:sanmill/services/audios.dart';
import 'package:stack_trace/stack_trace.dart';
import 'package:sanmill/style/app_theme.dart';
import 'package:stack_trace/stack_trace.dart';
import 'board.dart';
@ -108,7 +108,9 @@ class _GamePageState extends State<GamePage> with RouteAware {
changeStatus(colorWinStrings[winner]);
}
showGameResult(winner);
if (!Config.isAutoRestart) {
showGameResult(winner);
}
}
onBoardTap(BuildContext context, int index) {