File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ internal fun App(
71
71
) {
72
72
// if there is not a file selected and trace mode is live, then don't render anything.
73
73
val readyForFileTrace = traceMode is TraceMode .File && selectedTraceFile != null
74
- if (readyForFileTrace || traceMode is TraceMode .Live ) {
74
+ val readyForLiveTrace = traceMode is TraceMode .Live
75
+
76
+ if (readyForFileTrace || readyForLiveTrace) {
75
77
RenderTrace (
76
78
traceSource = traceMode,
77
79
frameInd = frameIndex,
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import com.squareup.workflow1.traceviewer.util.ParseResult
28
28
import com.squareup.workflow1.traceviewer.util.createMoshiAdapter
29
29
import com.squareup.workflow1.traceviewer.util.parseFileTrace
30
30
import com.squareup.workflow1.traceviewer.util.parseLiveTrace
31
- import io.github.vinceglb.filekit.dialogs.FileKitMode.Single.parseResult
32
31
import kotlinx.coroutines.Dispatchers
33
32
import kotlinx.coroutines.withContext
34
33
@@ -175,7 +174,6 @@ private fun DrawNode(
175
174
modifier = Modifier
176
175
.background(if (isAffected) Color .Green else Color .Transparent )
177
176
.clickable {
178
- // Selecting a node will bubble back up to the main view to handle the selection
179
177
onNodeSelect(node, previousNode)
180
178
}
181
179
.padding(10 .dp)
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ internal suspend fun parseFileTrace(
48
48
return ParseResult .Success (
49
49
trace = parsedFrames,
50
50
trees = frameTrees,
51
- affectedNodes = parsedRenderPasses)
51
+ affectedNodes = parsedRenderPasses
52
+ )
52
53
}
53
54
54
55
/* *
You can’t perform that action at this time.
0 commit comments