Ensure the form data are not lost when opening the log viewer. Closes #5579
This commit is contained in:
parent
ca47b142cd
commit
e287506321
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ class BugReportPresenter(
|
||||||
private val bugReporter: BugReporter,
|
private val bugReporter: BugReporter,
|
||||||
private val crashDataStore: CrashDataStore,
|
private val crashDataStore: CrashDataStore,
|
||||||
private val screenshotHolder: ScreenshotHolder,
|
private val screenshotHolder: ScreenshotHolder,
|
||||||
@AppCoroutineScope
|
@param:AppCoroutineScope
|
||||||
private val appCoroutineScope: CoroutineScope,
|
private val appCoroutineScope: CoroutineScope,
|
||||||
) : Presenter<BugReportState> {
|
) : Presenter<BugReportState> {
|
||||||
private class BugReporterUploadListener(
|
private class BugReporterUploadListener(
|
||||||
|
|
@ -77,7 +77,7 @@ class BugReportPresenter(
|
||||||
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
|
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
|
||||||
mutableStateOf(AsyncAction.Uninitialized)
|
mutableStateOf(AsyncAction.Uninitialized)
|
||||||
}
|
}
|
||||||
val formState: MutableState<BugReportFormState> = remember {
|
val formState: MutableState<BugReportFormState> = rememberSaveable {
|
||||||
mutableStateOf(BugReportFormState.Default)
|
mutableStateOf(BugReportFormState.Default)
|
||||||
}
|
}
|
||||||
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)
|
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue