Fix issue with click not being enable when an input was empty in nodes input panel.
This commit is contained in:
parent
e5d1b30cfd
commit
f1d74d8040
1 changed files with 5 additions and 1 deletions
|
@ -248,6 +248,9 @@ public class NodesInputPanel extends JPanel
|
|||
}
|
||||
else if (tracker != null) {
|
||||
tracker.setVisible(false);
|
||||
if (getInputToFill() == null) {
|
||||
nextInputToFill();
|
||||
}
|
||||
}
|
||||
|
||||
// Create array of nodes
|
||||
|
@ -399,7 +402,8 @@ public class NodesInputPanel extends JPanel
|
|||
for (JTextField input: nodeInputs) {
|
||||
MarkerOverlay tracker = markerTrackers.getOrDefault(input, null);
|
||||
if (tracker != null) {
|
||||
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(), tracker.getColor());
|
||||
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(),
|
||||
tracker.getColor());
|
||||
markerTrackers.put(input, newMarker);
|
||||
newMarker.setVisible(tracker.isVisible());
|
||||
tracker.delete();
|
||||
|
|
Loading…
Reference in a new issue