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:
parent
904ad9be1d
commit
61839d8c94
6 changed files with 46 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue