rule: Show experimental message when enabling mayMoveInPlacingPhase

This commit is contained in:
Calcitem 2021-07-09 00:28:22 +08:00
parent 05089ae463
commit 48cb448319
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import 'package:sanmill/widgets/settings_list_tile.dart';
import 'package:sanmill/widgets/settings_switch_list_tile.dart';
import 'list_item_divider.dart';
import 'snack_bar.dart';
class RuleSettingsPage extends StatefulWidget {
@override
@ -400,6 +401,10 @@ class _RuleSettingsPageState extends State<RuleSettingsPage> {
print("[config] rule.mayMoveInPlacingPhase: $value");
Config.save();
if (value) {
showSnackBar(context, S.of(context).experimental);
}
}
setIsDefenderMoveFirst(bool value) async {