mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-19 11:44:38 -04:00
UI: Sort audio controls by source name
Audio controls in OBS Mixer and Advanced Audio Properties window are not sorted at all. Every time OBS is restarted they get shuffled (Jim note: This is due to json object hashing). The order of these controls is additionally not consistent between the mixer and the advanced audio properties window. Closes obsproject/obs-studio#1242
This commit is contained in:
@@ -2514,8 +2514,11 @@ void OBSBasic::ActivateAudioSource(OBSSource source)
|
||||
connect(vol, &VolControl::ConfigClicked,
|
||||
this, &OBSBasic::VolControlContextMenu);
|
||||
|
||||
volumes.push_back(vol);
|
||||
ui->volumeWidgets->layout()->addWidget(vol);
|
||||
InsertQObjectByName(volumes, vol);
|
||||
|
||||
for (auto volume : volumes) {
|
||||
ui->volumeWidgets->layout()->addWidget(volume);
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasic::DeactivateAudioSource(OBSSource source)
|
||||
|
||||
Reference in New Issue
Block a user