mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-22 04:22:32 +01:00
Minor cleanup
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
package ca.gosyer.jui.data.base
|
||||
|
||||
import ca.gosyer.jui.core.lang.throwIfCancellation
|
||||
import ca.gosyer.jui.data.build.BuildKonfig
|
||||
import ca.gosyer.jui.data.server.Http
|
||||
import ca.gosyer.jui.data.server.ServerPreferences
|
||||
import io.ktor.client.plugins.websocket.ws
|
||||
@@ -33,7 +32,7 @@ abstract class WebsocketService(
|
||||
protected val client: Http
|
||||
) {
|
||||
protected val json = Json {
|
||||
ignoreUnknownKeys = !BuildKonfig.DEBUG
|
||||
ignoreUnknownKeys = true
|
||||
}
|
||||
protected abstract val _status: MutableStateFlow<Status>
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.util.fastForEach
|
||||
import androidx.compose.ui.util.fastForEachIndexed
|
||||
import ca.gosyer.jui.data.models.sourcefilters.SortFilter
|
||||
import ca.gosyer.jui.i18n.MR
|
||||
import ca.gosyer.jui.ui.base.prefs.ExpandablePreference
|
||||
@@ -269,7 +270,7 @@ fun SortView(sort: SourceFiltersView.Sort, startExpanded: Boolean, onExpandChang
|
||||
}
|
||||
) {
|
||||
Column(Modifier.fillMaxWidth()) {
|
||||
sort.filter.values.forEachIndexed { index, name ->
|
||||
sort.filter.values.fastForEachIndexed { index, name ->
|
||||
SortRow(
|
||||
name = name,
|
||||
selected = state?.index == index,
|
||||
|
||||
Reference in New Issue
Block a user