mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user