This commit is contained in:
@@ -15,6 +15,7 @@ import ch.psi.pshell.ui.App;
|
||||
import ch.psi.pshell.ui.Panel;
|
||||
import ch.psi.utils.State;
|
||||
import ch.psi.utils.swing.SwingUtils;
|
||||
import ch.psi.mxsc.BasePlate.SelectionMode;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
@@ -88,7 +89,7 @@ public class MainPanel extends Panel {
|
||||
SwingUtils.getWindow(this).setIconImage(img);
|
||||
}
|
||||
basePlatePanel.setDevice(Controller.getInstance().basePlate);
|
||||
basePlatePanel.getDevice().setSelectable(true);
|
||||
basePlatePanel.getDevice().setSelectionMode(SelectionMode.Pucks);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -97,7 +98,7 @@ public class MainPanel extends Panel {
|
||||
Controller.getInstance().onInitialize(runCount);
|
||||
if (basePlatePanel.getDevice() != (Device) getDevice("BasePlate")){
|
||||
basePlatePanel.setDevice((Device) getDevice("BasePlate"));
|
||||
basePlatePanel.getDevice().setSelectable(true);
|
||||
basePlatePanel.getDevice().setSelectionMode(SelectionMode.Pucks);
|
||||
}
|
||||
try {
|
||||
devicesPanel.initialize();
|
||||
|
||||
Reference in New Issue
Block a user