提交 df04dd07 编写于 作者: J jp9000

UI: Don't create encoder property views twice on load

When settings are being loaded in to the settings dialog, it would
recreate the encoder property views more than once unnecessarily.
上级 1f8fc8e8
......@@ -2703,6 +2703,9 @@ void OBSBasicSettings::on_advOutFFPathBrowse_clicked()
void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx)
{
if (loading)
return;
QString encoder = GetComboData(ui->advOutEncoder);
delete streamEncoderProps;
......@@ -2715,6 +2718,9 @@ void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx)
void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx)
{
if (loading)
return;
ui->advOutRecUseRescale->setEnabled(idx > 0);
ui->advOutRecRescaleContainer->setEnabled(idx > 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册