Change to always show the sensor controls. (#526)

This commit is contained in:
Sam El-Husseini
2018-04-16 11:50:12 -07:00
committed by Peli de Halleux
parent 03add213d9
commit 3c96cfcc0a
9 changed files with 36 additions and 9 deletions

View File

@ -466,7 +466,7 @@ namespace pxsim.visuals {
const isSelected = EV3View.isPreviousInputSelected(index, node.id) || view.getSelected();
if (isSelected && !view.getSelected()) view.setSelected(true);
const control = isSelected ? this.getControlForNode(node.id, index, !node.modeChange()) : undefined;
const closeIcon = control ? this.getCloseIconView() : undefined;
const closeIcon = control && view.hasClose() ? this.getCloseIconView() : undefined;
this.layoutView.setInput(index, view, control, closeIcon);
view.updateState();
if (control) control.updateState();