Don't show models that have already been added; Changed some defaults;
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/bin/
|
||||
/.classpath
|
||||
/.project
|
||||
.settings
|
||||
BIN
lm-launcher.jar
BIN
lm-launcher.jar
Binary file not shown.
@@ -302,7 +302,7 @@ public class LaunchFrame extends JFrame {
|
||||
|
||||
this.slider_context.setMaximum(model.maxContextSize());
|
||||
this.slider_context.setMajorTickSpacing(model.maxContextSize() / 4);
|
||||
this.slider_context.setMinorTickSpacing(model.maxContextSize() / 8);
|
||||
this.slider_context.setMinorTickSpacing(model.maxContextSize() / 16);
|
||||
this.slider_context.setValue(model.contextSize());
|
||||
this.slider_context.setLabelTable(this.slider_context.createStandardLabels(model.maxContextSize() / 4));
|
||||
this.slider_context.setSnapToTicks(true);
|
||||
|
||||
@@ -92,7 +92,7 @@ public class ModelPropertiesDialog extends JDialog {
|
||||
}
|
||||
{
|
||||
this.textField_2 = new JTextField();
|
||||
this.textField_2.setText("8");
|
||||
this.textField_2.setText("6");
|
||||
this.contentPanel.add(this.textField_2);
|
||||
this.textField_2.setColumns(10);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,10 @@ public class SelectModelDialog extends JDialog {
|
||||
}
|
||||
|
||||
private void initialize() {
|
||||
Data.scanModels().forEach(this.listModel::addElement);
|
||||
Data.scanModels()
|
||||
.stream()
|
||||
.filter(p -> Data.modelData.models().stream().noneMatch(m -> m.path().equals(p)))
|
||||
.forEach(this.listModel::addElement);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user