manager: Fix not refreshing after action button was pressed (#2201)
- This commit fix issue #2171 Tested-by: backslashxx <118538522+backslashxx@users.noreply.github.com> --------- Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
@@ -477,6 +477,7 @@ fun ModuleItem(
|
||||
val textDecoration = if (!module.remove) null else TextDecoration.LineThrough
|
||||
val interactionSource = remember { MutableInteractionSource() }
|
||||
val indication = LocalIndication.current
|
||||
val viewModel = viewModel<ModuleViewModel>()
|
||||
|
||||
Column(
|
||||
modifier = Modifier
|
||||
@@ -580,7 +581,10 @@ fun ModuleItem(
|
||||
if (module.hasActionScript) {
|
||||
FilledTonalButton(
|
||||
modifier = Modifier.defaultMinSize(52.dp, 32.dp),
|
||||
onClick = { navigator.navigate(ExecuteModuleActionScreenDestination(module.id)) },
|
||||
onClick = {
|
||||
navigator.navigate(ExecuteModuleActionScreenDestination(module.id))
|
||||
viewModel.markNeedRefresh()
|
||||
},
|
||||
contentPadding = ButtonDefaults.TextButtonContentPadding
|
||||
) {
|
||||
Icon(
|
||||
|
||||
Reference in New Issue
Block a user