mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-12 09:16:10 -04:00
frontend: Properly update studio mode mixer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user