Exclude tags in clock widget favorites part

This commit is contained in:
MM20
2022-09-24 19:37:03 +02:00
parent 5d8bbbd19e
commit 21bdbb2f0a
2 changed files with 5 additions and 61 deletions
@@ -47,9 +47,11 @@ class FavoritesPartProvider : PartProvider, KoinComponent {
val favorites by remember(columns, excludeCalendar, layout) {
favoritesRepository.getFavorites(
columns = columns,
maxRows = 1,
excludeCalendarEvents = excludeCalendar
excludeTypes = if (excludeCalendar) listOf("calendar", "tag") else listOf("tag"),
manuallySorted = true,
automaticallySorted = true,
frequentlyUsed = true,
limit = columns
)
}.collectAsState(emptyList())