Closedown

This commit is contained in:
sfop
2017-03-15 15:03:26 +01:00
parent 917d5ea14e
commit 0d74f85075
5 changed files with 17 additions and 18 deletions

View File

@@ -1401,7 +1401,7 @@ public class ScreenPanel extends Panel {
}
void saveSnapshot() throws Exception {
String snapshotFile = getContext().getSetup().expandPath("{images}/snapshot.png");
String snapshotFile = getContext().getSetup().expandPath("{images}/{date}_{time}_snapshot.png");
renderer.saveSnapshot(snapshotFile, "png", true);
getContext().setExecutionPars("snapshot");
String path = "/data";
@@ -1411,8 +1411,8 @@ public class ScreenPanel extends Panel {
message.append("Camera: ").append(cameraName).append(" (").
append((camera instanceof Camtool) ? "camtool" : "direct").append(")").append("\n");
message.append("Data file: ").append(getContext().getExecutionPars().getPath()).append("\n");
if ((fitOv != null) && (fitOv.length > 3)) {
Overlays.Text text = (Overlays.Text) fitOv[3];
if ((fitOv != null) && (fitOv.length > 5)) {
Overlays.Text text = (Overlays.Text) fitOv[5];
message.append(text.getText()).append("\n");
}
elog("ScreenPanel Snapshot", message.toString(), new String[]{snapshotFile});