Hiding puck detection errors from users.

This commit is contained in:
gac-S_Changer
2018-10-11 13:42:14 +02:00
parent 95bb544a48
commit 8502dbd2a9
2 changed files with 16 additions and 4 deletions

View File

@@ -49,6 +49,7 @@ public class Controller {
Device barcode_reader;
Device puck_detection;
JDialog dialogAskPuckDatamatrix;
String currentMountedSample;
public static Controller getInstance() {
return instance;
@@ -215,6 +216,17 @@ public class Controller {
getMainFrame().removeDevice(basePlate);
} else if (state == State.Ready) {
refreshSamplesTable();
try {
currentMountedSample = (String) Context.getInstance().evalLineBackground("get_setting('mounted_sample_position')");
Sample sample = basePlate.getSampleByName(currentMountedSample);
basePlate.resetLoadedSample();
sample.setLoaded(true);
} catch (Exception ex) {
currentMountedSample = null;
basePlate.resetLoadedSample();
}
getMainFrame().refresh();
}
}
@@ -548,7 +560,7 @@ public class Controller {
} catch (Exception ex) {
clearSamplesTable();
Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
//}
}