manager: Avoid repeated flashing caused by unconditionally clearing the Anykernel3 flashing status.
This commit is contained in:
@@ -184,8 +184,9 @@ fun KernelFlashScreen(
|
||||
}
|
||||
}
|
||||
|
||||
DisposableEffect(Unit) {
|
||||
DisposableEffect(shouldAutoExit) {
|
||||
onDispose {
|
||||
if (shouldAutoExit) {
|
||||
KernelFlashStateHolder.currentState = null
|
||||
KernelFlashStateHolder.currentUri = null
|
||||
KernelFlashStateHolder.currentSlot = null
|
||||
@@ -194,6 +195,7 @@ fun KernelFlashScreen(
|
||||
KernelFlashStateHolder.isFlashing = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BackHandler(enabled = true) {
|
||||
onBack()
|
||||
|
||||
Reference in New Issue
Block a user