mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
EditHabitCommand: Notify listeners
This commit is contained in:
@@ -80,6 +80,7 @@ public class EditHabitCommand implements Command
|
|||||||
|
|
||||||
habit.copyFrom(model);
|
habit.copyFrom(model);
|
||||||
habitList.update(habit);
|
habitList.update(habit);
|
||||||
|
habit.getObservable().notifyListeners();
|
||||||
|
|
||||||
if (hasFrequencyChanged || hasTargetChanged)
|
if (hasFrequencyChanged || hasTargetChanged)
|
||||||
habit.invalidateNewerThan(Timestamp.ZERO);
|
habit.invalidateNewerThan(Timestamp.ZERO);
|
||||||
|
|||||||
Reference in New Issue
Block a user