Put forgetList's doc back on forgetList (#100)
This commit is contained in:
1 parent
4992446acf
commit
0ea6878a7c
1 file changed
+2
-3
@@ -336,7 +336,6 @@ class SettingsPrefs @Inject constructor(
|
||||
p[GROUPINGS] = if (grouping == TaskGrouping.DUE) kept else kept + "${grouping.name}$GROUPING_SEPARATOR$key"
|
||||
}
|
||||
|
||||
/** Drops what was remembered about a list deleted here, so a later list given its id starts fresh. */
|
||||
suspend fun setUpcomingRange(range: UpcomingRange) = dataStore.edit { it[UPCOMING_RANGE] = range.name }
|
||||
|
||||
suspend fun setSortOrder(order: TaskSortOrder) = dataStore.edit { it[SORT_ORDER] = order.name }
|
||||
@@ -356,8 +355,8 @@ class SettingsPrefs @Inject constructor(
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops the store-bound settings of a list deleted from the current store.
|
||||
* The reminder overrides are keyed by bare id, shared by every store, so they stay.
|
||||
* Drops what was remembered about a list deleted from the current store, so a later list given its
|
||||
* id starts fresh. The reminder overrides are keyed by bare id, shared by every store, so they stay.
|
||||
*/
|
||||
suspend fun forgetList(listId: Long) = dataStore.edit { p ->
|
||||
val mode = modeOf(p).name
|
||||
|
||||
Reference in new issue
Block a user