pull/592/head
Febon 5 years ago
commit ca3ad18515

@ -45,8 +45,13 @@ public class ResetHabitsCommand extends Command
habitList.update(selected); habitList.update(selected);
} else { } else {
for (Habit h : habitList) { for (Habit h : habitList) {
h.getRepetitions().removeAll(); RepetitionList repetitionList = h.getRepetitions();
habitList.update(h); Repetition rep;
while(repetitionList.getTotalCount() != 0) {
rep = repetitionList.getOldest();
repetitionList.toggle(rep.getTimestamp());
repetitionList.remove(rep);
}
} }
} }
} }

Loading…
Cancel
Save