UI: Move projector rename signal

This moves the renaming of projectors from OBSBasic to OBSProjector.
This commit is contained in:
cg2121
2024-02-13 03:27:33 -06:00
committed by tt2468
parent 023d9bd851
commit cd918a7f4c
3 changed files with 20 additions and 9 deletions

View File

@@ -3344,11 +3344,6 @@ void OBSBasic::RenameSources(OBSSource source, QString newName,
volumes[i]->SetName(newName);
}
for (size_t i = 0; i < projectors.size(); i++) {
if (projectors[i]->GetSource() == source)
projectors[i]->RenameProjector(prevName, newName);
}
if (vcamConfig.type == VCamOutputType::SourceOutput &&
prevName == QString::fromStdString(vcamConfig.source))
vcamConfig.source = newName.toStdString();