Skip to content

Commit

Permalink
fix(PatchingScreen): hide abort warning dialog on state change
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Feb 10, 2025
1 parent 5554e1d commit 5818526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PatchingScreen(private val data: PatchOptions) : Screen, Parcelable {
val showMinimizationWarning = remember { !context.isIgnoringBatteryOptimizations() }

// Exit warning dialog (dismiss itself if install process state changes, esp. for Success)
var showAbortWarning by remember(model.state.collectAsState()) { mutableStateOf(false) }
var showAbortWarning by remember(model.state.collectAsState().value) { mutableStateOf(false) }

// The currently expanded step group on this screen
var expandedGroup by remember { mutableStateOf<StepGroup?>(StepGroup.Prepare) }
Expand Down

0 comments on commit 5818526

Please sign in to comment.