Skip to content

Commit

Permalink
Resolve custom actions editing moves
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 4, 2024
1 parent 71f90ab commit e8d15e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Backend/move_lists.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ class MoveList extends BaseAction {
@HiveField(6)
double repeat = 1;

MoveList({required super.name, required super.deviceCategory, super.actionCategory = ActionCategory.sequence, required super.uuid, this.moves = const []});
MoveList({required super.name, required super.deviceCategory, super.actionCategory = ActionCategory.sequence, required super.uuid, this.moves = const []}) {
if (moves.isEmpty) {
moves = [];
}
}
}

class EarsMoveList extends MoveList {
Expand Down

0 comments on commit e8d15e9

Please sign in to comment.