forked from j62/ctbrec
Revert removal of post-processing setting
This commit is contained in:
parent
768507d6e5
commit
316842e690
|
@ -53,6 +53,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
public static final int CHECKBOX_MARGIN = 6;
|
public static final int CHECKBOX_MARGIN = 6;
|
||||||
private DirectorySelectionBox recordingsDirectory;
|
private DirectorySelectionBox recordingsDirectory;
|
||||||
private ProgramSelectionBox mediaPlayer;
|
private ProgramSelectionBox mediaPlayer;
|
||||||
|
private ProgramSelectionBox postProcessing;
|
||||||
private TextField server;
|
private TextField server;
|
||||||
private TextField port;
|
private TextField port;
|
||||||
private TextField onlineCheckIntervalInSecs;
|
private TextField onlineCheckIntervalInSecs;
|
||||||
|
@ -305,6 +306,20 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
GridPane.setMargin(l, new Insets(0, 0, 0, 0));
|
GridPane.setMargin(l, new Insets(0, 0, 0, 0));
|
||||||
GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
||||||
|
|
||||||
|
layout.add(new Label("Post-Processing"), 0, row);
|
||||||
|
postProcessing = new ProgramSelectionBox(Config.getInstance().getSettings().postProcessing);
|
||||||
|
postProcessing.fileProperty().addListener((obs, o, n) -> {
|
||||||
|
String path = n.getAbsolutePath();
|
||||||
|
if(!Objects.equals(path, Config.getInstance().getSettings().postProcessing)) {
|
||||||
|
Config.getInstance().getSettings().postProcessing = path;
|
||||||
|
saveConfig();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
GridPane.setFillWidth(postProcessing, true);
|
||||||
|
GridPane.setHgrow(postProcessing, Priority.ALWAYS);
|
||||||
|
GridPane.setMargin(postProcessing, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
||||||
|
layout.add(postProcessing, 1, row++);
|
||||||
|
|
||||||
Tooltip tt = new Tooltip("Check every x seconds, if a model came online");
|
Tooltip tt = new Tooltip("Check every x seconds, if a model came online");
|
||||||
l = new Label("Check online state every (seconds)");
|
l = new Label("Check online state every (seconds)");
|
||||||
l.setTooltip(tt);
|
l.setTooltip(tt);
|
||||||
|
|
Loading…
Reference in New Issue