Przeglądaj źródła

UI: Properly disable when scale disabled

Enable/Disable scale output ComboBox based on whether
the scale checkbox is selected.
kc5nra 10 lat temu
rodzic
commit
8743e722ae
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      obs/window-basic-settings.cpp

+ 2 - 0
obs/window-basic-settings.cpp

@@ -686,6 +686,7 @@ void OBSBasicSettings::LoadAdvOutputStreamingSettings()
 	ui->advOutMaxRetries->setValue(maxRetries);
 	ui->advOutApplyService->setChecked(applyServiceSettings);
 	ui->advOutUseRescale->setChecked(rescale);
+	ui->advOutRescale->setEnabled(rescale);
 	ui->advOutRescale->setCurrentText(rescaleRes);
 
 	switch (trackIndex) {
@@ -807,6 +808,7 @@ void OBSBasicSettings::LoadAdvOutputFFmpegSettings()
 	ui->advOutFFURL->setText(url);
 	ui->advOutFFVBitrate->setValue(videoBitrate);
 	ui->advOutFFUseRescale->setChecked(rescale);
+	ui->advOutFFRescale->setEnabled(rescale);
 	ui->advOutFFRescale->setCurrentText(rescaleRes);
 	ui->advOutFFVEncoder->setText(vEncoder);
 	ui->advOutFFVCfg->setText(vEncCustom);