UI: Hide instead of disable rescale
Hides the rescale option when selecting a texture-based encoder instead of just disabling.master
parent
9cd892cf9e
commit
1f317fb80a
|
@ -3469,11 +3469,11 @@ void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx)
|
|||
|
||||
if (caps & OBS_ENCODER_CAP_PASS_TEXTURE) {
|
||||
ui->advOutUseRescale->setChecked(false);
|
||||
ui->advOutUseRescale->setEnabled(false);
|
||||
ui->advOutRescale->setEnabled(false);
|
||||
ui->advOutUseRescale->setVisible(false);
|
||||
ui->advOutRescale->setVisible(false);
|
||||
} else {
|
||||
ui->advOutUseRescale->setEnabled(true);
|
||||
ui->advOutRescale->setEnabled(true);
|
||||
ui->advOutUseRescale->setVisible(true);
|
||||
ui->advOutRescale->setVisible(true);
|
||||
}
|
||||
|
||||
UNUSED_PARAMETER(idx);
|
||||
|
@ -3488,8 +3488,8 @@ void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
|
|||
|
||||
if (idx <= 0) {
|
||||
ui->advOutRecUseRescale->setChecked(false);
|
||||
ui->advOutRecUseRescale->setEnabled(false);
|
||||
ui->advOutRecRescaleContainer->setEnabled(false);
|
||||
ui->advOutRecUseRescale->setVisible(false);
|
||||
ui->advOutRecRescaleContainer->setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3510,11 +3510,11 @@ void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
|
|||
|
||||
if (caps & OBS_ENCODER_CAP_PASS_TEXTURE) {
|
||||
ui->advOutRecUseRescale->setChecked(false);
|
||||
ui->advOutRecUseRescale->setEnabled(false);
|
||||
ui->advOutRecRescaleContainer->setEnabled(false);
|
||||
ui->advOutRecUseRescale->setVisible(false);
|
||||
ui->advOutRecRescaleContainer->setVisible(false);
|
||||
} else {
|
||||
ui->advOutRecUseRescale->setEnabled(true);
|
||||
ui->advOutRecRescaleContainer->setEnabled(true);
|
||||
ui->advOutRecUseRescale->setVisible(true);
|
||||
ui->advOutRecRescaleContainer->setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue