@@ -48,6 +48,7 @@ data class LauncherSettingsData internal constructor(
|
||||
val favoritesFrequentlyUsed: Boolean = true,
|
||||
val favoritesFrequentlyUsedRows: Int = 1,
|
||||
val favoritesEditButton: Boolean = true,
|
||||
val favoritesCompactTags: Boolean = false,
|
||||
|
||||
val fileSearchProviders: Set<String> = setOf("local"),
|
||||
|
||||
|
||||
+7
@@ -41,4 +41,11 @@ class FavoritesSettings internal constructor(
|
||||
fun setFrequentlyUsedRows(frequentlyUsedRows: Int) {
|
||||
dataStore.update { it.copy(favoritesFrequentlyUsedRows = frequentlyUsedRows) }
|
||||
}
|
||||
|
||||
val compactTags: Flow<Boolean>
|
||||
get() = dataStore.data.map { it.favoritesCompactTags }.distinctUntilChanged()
|
||||
|
||||
fun setCompactTags(compactTags: Boolean) {
|
||||
dataStore.update { it.copy(favoritesCompactTags = compactTags) }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user