frontend: Properly update studio mode mixer

This commit is contained in:
Penwywern
2026-01-19 23:22:54 +01:00
committed by Ryan Foster
parent fa49eace7d
commit 71de30f2a9

View File

@@ -380,12 +380,14 @@ void AudioMixer::updateControlVisibility(QString uuid)
void AudioMixer::sourceCreated(QString uuid)
{
addControlForUuid(uuid);
updatePreviewSources();
updateGlobalSources();
}
void AudioMixer::sourceRemoved(QString uuid)
{
removeControlForUuid(uuid);
updatePreviewSources();
updateGlobalSources();
}
@@ -871,6 +873,8 @@ void AudioMixer::handleFrontendEvent(obs_frontend_event event)
{
switch (event) {
case OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED:
case OBS_FRONTEND_EVENT_STUDIO_MODE_ENABLED:
case OBS_FRONTEND_EVENT_STUDIO_MODE_DISABLED:
updatePreviewSources();
queueLayoutUpdate();
break;