Implement partial reordering or habit groups

This commit is contained in:
Dharanish
2024-07-07 10:26:28 +02:00
parent 8df1fb765c
commit 26260fbbc4
2 changed files with 17 additions and 5 deletions

View File

@@ -118,6 +118,10 @@ open class ListHabitsBehavior @Inject constructor(
}
}
fun onReorderHabitGroup(from: HabitGroup, to: HabitGroup) {
taskRunner.execute { habitGroupList.reorder(from, to) }
}
fun onRepairDB() {
taskRunner.execute {
habitList.repair()