Fix do not change to harder level immediately when human win AI
This commit is contained in:
parent
b20b21793e
commit
dc871776aa
|
@ -1173,9 +1173,10 @@ class _GamePageState extends State<GamePage>
|
||||||
fontSize: Config.fontSize,
|
fontSize: Config.fontSize,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
if (!isTopLevel) Config.skillLevel++;
|
if (!isTopLevel) Config.skillLevel++;
|
||||||
Config.save();
|
Config.save();
|
||||||
|
await widget.engine.setOptions(context);
|
||||||
print("[config] skillLevel: ${Config.skillLevel}");
|
print("[config] skillLevel: ${Config.skillLevel}");
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue