forked from j62/ctbrec
Add tooltip for max resolution
This commit is contained in:
parent
351560079b
commit
9245ab6592
|
@ -292,8 +292,11 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
||||||
|
|
||||||
l = new Label("Maximum resolution (0 = unlimited)");
|
l = new Label("Maximum resolution (0 = unlimited)");
|
||||||
|
Tooltip tt = new Tooltip("video height, e.g. 720 or 1080");
|
||||||
|
l.setTooltip(tt);
|
||||||
layout.add(l, 0, row);
|
layout.add(l, 0, row);
|
||||||
maxResolution = new TextField(Integer.toString(Config.getInstance().getSettings().maximumResolution));
|
maxResolution = new TextField(Integer.toString(Config.getInstance().getSettings().maximumResolution));
|
||||||
|
maxResolution.setTooltip(tt);
|
||||||
maxResolution.textProperty().addListener((observable, oldValue, newValue) -> {
|
maxResolution.textProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
if (!newValue.matches("\\d*")) {
|
if (!newValue.matches("\\d*")) {
|
||||||
maxResolution.setText(newValue.replaceAll("[^\\d]", ""));
|
maxResolution.setText(newValue.replaceAll("[^\\d]", ""));
|
||||||
|
@ -346,7 +349,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
GridPane.setMargin(postProcessing, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
GridPane.setMargin(postProcessing, new Insets(0, 0, 0, CHECKBOX_MARGIN));
|
||||||
layout.add(postProcessing, 1, row++);
|
layout.add(postProcessing, 1, row++);
|
||||||
|
|
||||||
Tooltip tt = new Tooltip("Check every x seconds, if a model came online");
|
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);
|
||||||
layout.add(l, 0, row);
|
layout.add(l, 0, row);
|
||||||
|
|
Loading…
Reference in New Issue