You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: fix update tag attached to wrong module after using sort options (fix #473)
This commit is contained in:
@@ -594,9 +594,9 @@ private fun ModuleList(
|
|||||||
else -> {
|
else -> {
|
||||||
items(viewModel.moduleList) { module ->
|
items(viewModel.moduleList) { module ->
|
||||||
val scope = rememberCoroutineScope()
|
val scope = rememberCoroutineScope()
|
||||||
val updatedModule by produceState(initialValue = Triple("", "", "")) {
|
val updatedModule by produceState(key1 = module.id, initialValue = Triple("", "", "")) {
|
||||||
scope.launch(Dispatchers.IO) {
|
value = withContext(Dispatchers.IO) {
|
||||||
value = viewModel.checkUpdate(module)
|
viewModel.checkUpdate(module)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user