Minor stuff

This commit is contained in:
Brendan Robert 2018-01-24 01:19:20 -06:00
parent b5e2bbb485
commit 9692f89145
2 changed files with 17 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -234,7 +234,11 @@ public class JaceUIController {
}
});
speedSlider.valueProperty().addListener((val, oldValue, newValue) -> setSpeed(newValue.doubleValue()));
Platform.runLater(() -> speedSlider.setValue(Emulator.logic.speedSetting));
Platform.runLater(() -> {
speedSlider.setValue(Emulator.logic.speedSetting);
// Kind of redundant but make sure speed is properly set as if the user did it
setSpeed(Emulator.logic.speedSetting);
});
}
private void connectButtons(Node n) {