Startup
This commit is contained in:
@@ -273,6 +273,13 @@ public class ScreenPanel extends Panel {
|
||||
model.addElement(prefix);
|
||||
}
|
||||
}
|
||||
if (App.hasArgument("cam")) {
|
||||
String cam = App.getArgumentValue("cam");
|
||||
if (model.getIndexOf(cam)<0){
|
||||
model.addElement(cam);
|
||||
}
|
||||
}
|
||||
|
||||
comboCameras.setModel(model);
|
||||
comboCameras.setEnabled(true);
|
||||
comboCameras.setSelectedItem(-1);
|
||||
@@ -422,7 +429,7 @@ public class ScreenPanel extends Panel {
|
||||
}
|
||||
try {
|
||||
Path configFile = Paths.get(configFolder, cameraName + ".json");
|
||||
cameraConfigJson = new String(Files.readAllBytes(configFile));
|
||||
cameraConfigJson = configFile.toFile().exists() ? new String(Files.readAllBytes(configFile)) : null;
|
||||
this.cameraName = cameraName;
|
||||
try {
|
||||
if (buttonCamtool.isSelected()) {
|
||||
|
||||
Reference in New Issue
Block a user