forked from j62/ctbrec
Disable servlet context path, if the recording mode is local
This commit is contained in:
parent
76794e588e
commit
30a8a50402
|
@ -74,6 +74,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
private ProgramSelectionBox postProcessing;
|
||||
private TextField server;
|
||||
private TextField port;
|
||||
private TextField servletContext;
|
||||
private TextField onlineCheckIntervalInSecs;
|
||||
private TextField leaveSpaceOnDevice;
|
||||
private TextField minimumLengthInSecs;
|
||||
|
@ -219,7 +220,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
layout.add(port, 1, row++);
|
||||
|
||||
layout.add(new Label("Path"), 0, row);
|
||||
TextField servletContext = new TextField(Config.getInstance().getSettings().servletContext);
|
||||
servletContext = new TextField(Config.getInstance().getSettings().servletContext);
|
||||
servletContext.setPromptText("e.g. /ctbrec");
|
||||
servletContext.setTooltip(new Tooltip("Leave empty, if you didn't change the servletContext in the server config"));
|
||||
servletContext.textProperty().addListener((observable, oldValue, newValue) -> {
|
||||
|
@ -710,6 +711,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
private void setRecordingMode(boolean local) {
|
||||
server.setDisable(local);
|
||||
port.setDisable(local);
|
||||
servletContext.setDisable(local);
|
||||
useAuthentication.setDisable(local);
|
||||
useTLS.setDisable(local);
|
||||
recordingsDirectory.setDisable(!local);
|
||||
|
|
Loading…
Reference in New Issue