UI: Use OBSSourceLabel for VolControl

The OBSSourceLabel handles renaming of a source, so we don't have
to use the rename signals for volume controls.
This commit is contained in:
cg2121
2024-05-11 18:18:13 -07:00
committed by tt2468
parent 272a5edbaa
commit b82a49e881
3 changed files with 4 additions and 20 deletions
-5
View File
@@ -3339,11 +3339,6 @@ void OBSBasic::RenameSources(OBSSource source, QString newName,
{
RenameListValues(ui->scenes, newName, prevName);
for (size_t i = 0; i < volumes.size(); i++) {
if (volumes[i]->GetName().compare(prevName) == 0)
volumes[i]->SetName(newName);
}
if (vcamConfig.type == VCamOutputType::SourceOutput &&
prevName == QString::fromStdString(vcamConfig.source))
vcamConfig.source = newName.toStdString();