Merge branch 'main' of github.com:MM2-0/Kvaesitso

This commit is contained in:
MM20 2024-07-19 23:14:22 +02:00
commit 89cd56aafe
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
3 changed files with 6 additions and 2 deletions

View File

@ -17,9 +17,11 @@ data class SearchFilters(
val events: Boolean = true,
val tools: Boolean = true,
) {
private val categories = listOf(apps, websites, articles, places, files, shortcuts, contacts, events, tools)
val allCategoriesEnabled
get() = apps && websites && articles && places && files && shortcuts && contacts && events && tools
get() = categories.all { it }
val enabledCategories: Int
get() = apps.toInt() + websites.toInt() + articles.toInt() + places.toInt() + files.toInt() + shortcuts.toInt() + contacts.toInt() + events.toInt() + tools.toInt()
get() = categories.count { it }
}

View File

@ -777,4 +777,5 @@
<item quantity="other">%1$s Benachrichtigungen</item>
</plurals>
<string name="weather_widget_no_provider">Es ist kein Wetterdienst ausgewählt oder der gewählte Dienst ist nicht verfügbar</string>
<string name="apps_profile_private">Privater Bereich</string>
</resources>

View File

@ -793,4 +793,5 @@
</plurals>
<string name="preference_search_bar_separate_work_profile">Отделить рабочие приложения</string>
<string name="poi_category_car_wash">Мойка</string>
<string name="apps_profile_private">Private space</string>
</resources>