Skip to content

Commit

Permalink
fix jump rope counter
Browse files Browse the repository at this point in the history
  • Loading branch information
o-bagge committed Feb 12, 2024
1 parent b22b429 commit fa48bec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions open_earable/lib/apps/jump_rope_counter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,13 @@ class _JumpRopeCounterState extends State<JumpRopeCounter>
label: 'Undo', onPressed: () => delete = false),
),
);

await snackbarController.closed;
return delete;
}
return true;
},
onDismissed: (direction) {
setState(() async {
await snackbarController.closed;
setState(() {
_recordings.removeAt(index);
saveJumpRecordings();
});
Expand Down

0 comments on commit fa48bec

Please sign in to comment.