Fix bitrate field always being active regardless of selected preset (fixes #20)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user