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 -> {
|
||||
items(viewModel.moduleList) { module ->
|
||||
val scope = rememberCoroutineScope()
|
||||
val updatedModule by produceState(initialValue = Triple("", "", "")) {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
value = viewModel.checkUpdate(module)
|
||||
val updatedModule by produceState(key1 = module.id, initialValue = Triple("", "", "")) {
|
||||
value = withContext(Dispatchers.IO) {
|
||||
viewModel.checkUpdate(module)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user