Fix bitrate field always being active regardless of selected preset (fixes #20)

This commit is contained in:
johni0702
2016-10-22 19:37:33 +02:00
parent b5a6d8b307
commit 21bbeb2235

View File

@@ -284,6 +284,15 @@ public class GuiRenderSettings extends GuiScreen implements Closeable {
videoHeight.setTextColor(Colors.RED); videoHeight.setTextColor(Colors.RED);
} }
// Enable/Disable bitrate input field and dropdown
if (encodingPresetDropdown.getSelectedValue().hasBitrateSetting()) {
bitRateField.setEnabled();
bitRateUnit.setEnabled();
} else {
bitRateField.setDisabled();
bitRateUnit.setDisabled();
}
// Enable/Disable camera stabilization checkboxes // Enable/Disable camera stabilization checkboxes
switch (renderMethodDropdown.getSelectedValue()) { switch (renderMethodDropdown.getSelectedValue()) {
case CUBIC: case CUBIC: