Skip to content

Commit 92c6ff8

Browse files
authored
Fix jump button being enabled the moment the debugger is paused (#6)
It should still check if a node is actually selected or not.
1 parent 2c58386 commit 92c6ff8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/kotlin/be/ugent/topl/mio/ui/GraphPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class GraphPanel(private val graph: MultiverseGraph) : JPanel(),
4040
private var renderedHeight = 500
4141
private var renderedWidth = 2000
4242
private val nodes = mutableListOf<Node>()
43-
private var selectedNode: Node? = null
43+
var selectedNode: Node? = null
44+
private set
4445

4546
// Panning
4647
private var startPos = Point(0, 0)

src/main/kotlin/be/ugent/topl/mio/ui/InteractiveDebugger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ class MultiversePanel(private val multiverseDebugger: MultiverseDebugger, config
749749
concolicButton.isEnabled = enabled
750750
//customButton.isEnabled = enabled && multiverseDebugger.graph.currentNode is PrimitiveNode
751751
customButton.isEnabled = enabled
752-
followButton.isEnabled = enabled
752+
followButton.isEnabled = enabled && graphPanel.selectedNode != null
753753
}
754754
}
755755

0 commit comments

Comments
 (0)