From 3ae6da0ed3b7c51e94e5872bc7dc5ef1d05f60b8 Mon Sep 17 00:00:00 2001 From: Quentin Hibon Date: Thu, 14 Apr 2022 22:22:24 +0200 Subject: [PATCH] Resort habit list after habit edit Fixes #1131. --- .../java/org/isoron/uhabits/core/commands/EditHabitCommand.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/commands/EditHabitCommand.kt b/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/commands/EditHabitCommand.kt index d8a19010b..1fe966f46 100644 --- a/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/commands/EditHabitCommand.kt +++ b/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/commands/EditHabitCommand.kt @@ -33,5 +33,6 @@ data class EditHabitCommand( habitList.update(habit) habit.observable.notifyListeners() habit.recompute() + habitList.resort() } }