Skip to content

Commit

Permalink
Fix zen mode enabled logic
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed May 29, 2024
1 parent 7c8fb47 commit 36a1586
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/model/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,8 @@ class GameState with _$GameState {

/// Whether zen mode is enabled by account preference or local game setting
bool get isZenModeEnabled =>
game.playable &&
(zenModeGameSetting ??
game.prefs?.zenMode == Zen.yes ||
game.prefs?.zenMode == Zen.gameAuto);
zenModeGameSetting ??
game.prefs?.zenMode == Zen.yes || game.prefs?.zenMode == Zen.gameAuto;

bool get canPremove =>
game.meta.speed != Speed.correspondence &&
Expand Down

0 comments on commit 36a1586

Please sign in to comment.