Skip to content

Commit

Permalink
manager: refresh after action
Browse files Browse the repository at this point in the history
Co-Authored-By: Rissu <[email protected]>
  • Loading branch information
Admirepowered and rsuntk committed Jan 7, 2025
1 parent b2f3477 commit 77b9073
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/me/bmax/apatch/ui/screen/APM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private fun ModuleItem(
) {
val decoration = if (!module.remove) TextDecoration.None else TextDecoration.LineThrough
val moduleAuthor = stringResource(id = R.string.apm_author)

val viewModel = viewModel<APModuleViewModel>()
Surface(
modifier = modifier,
color = MaterialTheme.colorScheme.surface,
Expand Down Expand Up @@ -580,7 +580,10 @@ private fun ModuleItem(

if (module.hasActionScript) {
FilledTonalButton(
onClick = { navigator.navigate(ExecuteAPMActionScreenDestination(module.id)) },
onClick = {
navigator.navigate(ExecuteAPMActionScreenDestination(module.id))
viewModel.markNeedRefresh()
},
enabled = true,
contentPadding = PaddingValues(horizontal = 12.dp)
) {
Expand Down

0 comments on commit 77b9073

Please sign in to comment.