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