chore: save activities on launch (#3644)
This commit is contained in:
parent
39fc047961
commit
ed7c7d2d7e
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,10 @@ class ActivityPlannerBuilderState extends State<ActivityPlannerBuilder> {
|
|||
void startEditing() => setLaunchState(ActivityLaunchState.editing);
|
||||
|
||||
void setLaunchState(ActivityLaunchState state) {
|
||||
if (state == ActivityLaunchState.launching) {
|
||||
BookmarkedActivitiesRepo.save(updatedActivity);
|
||||
}
|
||||
|
||||
launchState = state;
|
||||
if (mounted) setState(() {});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue