Skip to content

Commit

Permalink
Disable premove in correspondence game
Browse files Browse the repository at this point in the history
Closes #617
  • Loading branch information
veloce committed Apr 14, 2024
1 parent 2865fb7 commit 3e2458e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/model/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,9 @@ class GameState with _$GameState {
bool get isZenModeEnabled =>
zenModeGameSetting ??
game.prefs?.zenMode == Zen.yes || game.prefs?.zenMode == Zen.gameAuto;
bool get canPremove => game.prefs?.enablePremove ?? true;
bool get canPremove =>
game.meta.speed != Speed.correspondence &&
(game.prefs?.enablePremove ?? true);
bool get canAutoQueen => game.prefs?.autoQueen == AutoQueen.always;
bool get canAutoQueenOnPremove => game.prefs?.autoQueen == AutoQueen.premove;
bool get shouldConfirmResignAndDrawOffer => game.prefs?.confirmResign ?? true;
Expand Down

0 comments on commit 3e2458e

Please sign in to comment.