Skip to content

Commit

Permalink
manager: Fix not refreshing after action button was pressed (tiann#2201)
Browse files Browse the repository at this point in the history
- This commit fix issue tiann#2171


Tested-by: backslashxx <[email protected]>

---------

Signed-off-by: rsuntk <[email protected]>
  • Loading branch information
rsuntk authored Nov 11, 2024
1 parent b7b704e commit 0f81c41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ private fun TopBar(onBack: () -> Unit = {}, onSave: () -> Unit = {}) {
}
}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0f81c41

Please sign in to comment.