fix(PatchingScreen): hide abort warning dialog on state change

This commit is contained in:
rushiiMachine 2025-02-09 18:35:07 -08:00
parent 5554e1dd31
commit 5818526d77
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420

View file

@ -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) }