Browse Source

oops forgot some lines commented

main v1.2
mainSpi 3 years ago
parent
commit
e61bd5d22b
  1. 12
      src/main/java/greek/horse/server/ui/controllers/WebcamController.java
  2. BIN
      target/classes/greek/horse/server/ui/controllers/WebcamController.class

12
src/main/java/greek/horse/server/ui/controllers/WebcamController.java

@ -20,12 +20,12 @@ public class WebcamController {
public void configureChoiceBox() { public void configureChoiceBox() {
choiceBox.getSelectionModel().selectFirst(); choiceBox.getSelectionModel().selectFirst();
// choiceBox.getSelectionModel().selectedIndexProperty()
// .addListener((observableValue, oldIndex, newIndex) -> {
// if (oldIndex.intValue() != newIndex.intValue()) {
// task.refreshSettings(newIndex.intValue());
// }
// });
choiceBox.getSelectionModel().selectedIndexProperty()
.addListener((observableValue, oldIndex, newIndex) -> {
if (oldIndex.intValue() != newIndex.intValue()) {
task.refreshSettings(newIndex.intValue());
}
});
} }
public void setImage(BufferedImage screenCapture) { public void setImage(BufferedImage screenCapture) {

BIN
target/classes/greek/horse/server/ui/controllers/WebcamController.class

Loading…
Cancel
Save