Skip to content

Commit 8f2d4a7

Browse files
committed
Restore tempFiles state when restoring session
Closes #108
1 parent 6aa87f1 commit 8f2d4a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/io/github/chrisimx/scanbridge/data/ui/ScanningScreenViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class ScanningScreenViewModel(
155155

156156
if (storedSession != null) {
157157
scanningScreenData.currentScansState.addAll(storedSession.scannedPages)
158+
_scanningScreenData.createdTempFiles.addAll(storedSession.tmpFiles.map { File(it) })
158159
_scanningScreenData.scanSettingsVM.value = ScanSettingsComposableViewModel(
159160
ScanSettingsComposableData(storedSession.scanSettings?.toMutable() ?: caps.calculateDefaultESCLScanSettingsState(), caps),
160161
onSettingsChanged = {

0 commit comments

Comments
 (0)