mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Don't enable rescale if on "Use stream encoder"
Fixes a bug where if you set the advanced output recording encoder to "use stream encoder", then reopened the settings window, that option would become enabled again.
This commit is contained in:
parent
83f0b98387
commit
f3b8b2ec49
@ -3477,14 +3477,14 @@ void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx)
|
|||||||
void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
|
void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
|
||||||
{
|
{
|
||||||
if (!loading) {
|
if (!loading) {
|
||||||
ui->advOutRecUseRescale->setEnabled(idx > 0);
|
|
||||||
ui->advOutRecRescaleContainer->setEnabled(idx > 0);
|
|
||||||
|
|
||||||
delete recordEncoderProps;
|
delete recordEncoderProps;
|
||||||
recordEncoderProps = nullptr;
|
recordEncoderProps = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idx <= 0) {
|
if (idx <= 0) {
|
||||||
|
ui->advOutRecUseRescale->setChecked(false);
|
||||||
|
ui->advOutRecUseRescale->setEnabled(false);
|
||||||
|
ui->advOutRecRescaleContainer->setEnabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3506,10 +3506,10 @@ void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
|
|||||||
if (caps & OBS_ENCODER_CAP_PASS_TEXTURE) {
|
if (caps & OBS_ENCODER_CAP_PASS_TEXTURE) {
|
||||||
ui->advOutRecUseRescale->setChecked(false);
|
ui->advOutRecUseRescale->setChecked(false);
|
||||||
ui->advOutRecUseRescale->setEnabled(false);
|
ui->advOutRecUseRescale->setEnabled(false);
|
||||||
ui->advOutRecRescale->setEnabled(false);
|
ui->advOutRecRescaleContainer->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
ui->advOutRecUseRescale->setEnabled(true);
|
ui->advOutRecUseRescale->setEnabled(true);
|
||||||
ui->advOutRecRescale->setEnabled(true);
|
ui->advOutRecRescaleContainer->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user