mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-10 02:58:55 +01:00
Fix per-category sort/display affecting the wrong category
This commit is contained in:
@@ -6,10 +6,7 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.collectAsState
|
||||
import androidx.compose.runtime.derivedStateOf
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import eu.kanade.domain.library.service.LibraryPreferences
|
||||
@@ -35,13 +32,8 @@ import tachiyomi.domain.manga.model.TriStateFilter
|
||||
fun LibrarySettingsDialog(
|
||||
onDismissRequest: () -> Unit,
|
||||
screenModel: LibrarySettingsScreenModel,
|
||||
activeCategoryIndex: Int,
|
||||
category: Category,
|
||||
) {
|
||||
val state by screenModel.state.collectAsState()
|
||||
val category by remember(activeCategoryIndex) {
|
||||
derivedStateOf { state.categories[activeCategoryIndex] }
|
||||
}
|
||||
|
||||
TabbedDialog(
|
||||
onDismissRequest = onDismissRequest,
|
||||
tabTitles = listOf(
|
||||
|
||||
Reference in New Issue
Block a user