mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
Preserve scrub cancellation callbacks and initialize test snapshots
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -265,8 +265,8 @@ object SessionArtifacts {
|
||||
internal fun scrubAndMark(
|
||||
dir: File,
|
||||
stopWhenSessionStarts: Boolean = false,
|
||||
sessionStarted: () -> Boolean = { SessionState.running },
|
||||
beforeReplace: (File) -> Unit = {},
|
||||
sessionStarted: () -> Boolean = { SessionState.running },
|
||||
): Boolean {
|
||||
val shouldStop = { stopWhenSessionStarts && sessionStarted() }
|
||||
val record = scrubTree(Record(dir), shouldStop, beforeReplace)
|
||||
|
||||
Reference in new issue
Block a user