Skip to content
Merged
6 changes: 5 additions & 1 deletion lib/src/model/analysis/analysis_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ class AnalysisController extends _$AnalysisController
@override
void expandVariations(UciPath path) {
final node = _root.nodeAt(path);
for (final child in node.children) {

final childrenToShow =
_root.isOnMainline(path) ? node.children.skip(1) : node.children;

for (final child in childrenToShow) {
child.isHidden = false;
for (final grandChild in child.children) {
grandChild.isHidden = false;
Expand Down
1 change: 1 addition & 0 deletions lib/src/model/settings/preferences_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum PrefCategory {
home('preferences.home'),
board('preferences.board'),
analysis('preferences.analysis'),
study('preferences.study'),
overTheBoard('preferences.overTheBoard'),
challenge('preferences.challenge'),
gameSetup('preferences.gameSetup'),
Expand Down
Loading