CTD Fixes

Couple more fixes to menus and datablock selection
This commit is contained in:
Douglas Gillespie 2022-08-23 14:30:46 +01:00
parent c641c58e4f
commit 4b3a37636b
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.pamguard</groupId>
<artifactId>Pamguard</artifactId>
<version>2.02.04d</version>
<version>2.02.04f</version>
<name>Pamguard Java12+</name>
<description>Pamguard for Java 12+, using Maven to control dependcies</description>
<url>www.pamguard.org</url>

View File

@ -94,7 +94,7 @@ public class CTSwingGUI extends PamControlledGUISwing {
@Override
public JMenuItem createDetectionMenu(Frame parentFrame) {
JMenu submenu = new JMenu("Click Train Detector");
JMenu submenu = new JMenu(clickTrainControl.getUnitName());
JMenuItem menuItem = new JMenuItem("Detection Settings ...");

View File

@ -511,7 +511,7 @@ public class ClickTrainAlgorithmPaneFX extends SettingsPane<ClickTrainParams> {
// and fill in the data source list (may have changed - or might in later versions)
ArrayList<PamDataBlock> rd = PamController.getInstance().getDataBlocks(ClickDetection.class, true);
PamDataBlock datablock = PamController.getInstance().getRawDataBlock(clickTrainParams.dataSourceName);
PamDataBlock datablock = PamController.getInstance().getDataBlockByLongName(clickTrainParams.dataSourceName);
//use the data selector.
dataSelectorCheckBox.setSelected(clickTrainParams.useDataSelector);