diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7f53e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/bin/ +/.classpath +/.project +.settings diff --git a/lm-launcher.jar b/lm-launcher.jar index 8765f81..5b7cf28 100644 Binary files a/lm-launcher.jar and b/lm-launcher.jar differ diff --git a/src/de/extio/lm_launcher/LaunchFrame.java b/src/de/extio/lm_launcher/LaunchFrame.java index ba09f6f..2ed7d31 100644 --- a/src/de/extio/lm_launcher/LaunchFrame.java +++ b/src/de/extio/lm_launcher/LaunchFrame.java @@ -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); diff --git a/src/de/extio/lm_launcher/ModelPropertiesDialog.java b/src/de/extio/lm_launcher/ModelPropertiesDialog.java index 5123bc3..cbdcbde 100644 --- a/src/de/extio/lm_launcher/ModelPropertiesDialog.java +++ b/src/de/extio/lm_launcher/ModelPropertiesDialog.java @@ -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); } diff --git a/src/de/extio/lm_launcher/SelectModelDialog.java b/src/de/extio/lm_launcher/SelectModelDialog.java index 1eddb8b..15f7483 100644 --- a/src/de/extio/lm_launcher/SelectModelDialog.java +++ b/src/de/extio/lm_launcher/SelectModelDialog.java @@ -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); } }