From 8308f1358cd4fe97f0a8519e75efbbf7d1abf69d Mon Sep 17 00:00:00 2001 From: Warchamp7 Date: Thu, 19 Mar 2026 05:17:52 -0400 Subject: [PATCH] frontend: Fix audio mixer sorting weight Pinned sources were appearing before Global, which was not intended --- frontend/widgets/AudioMixer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/widgets/AudioMixer.cpp b/frontend/widgets/AudioMixer.cpp index 0bd89d453..87f895e4b 100644 --- a/frontend/widgets/AudioMixer.cpp +++ b/frontend/widgets/AudioMixer.cpp @@ -652,27 +652,27 @@ void AudioMixer::updateVolumeLayouts() hiddenCount += 1; } - if (!isGlobal) { - sortingWeight += 20; - } - - if (!isPinned) { - sortingWeight += 20; + if (isGlobal) { + sortingWeight = 0; + } else if (isPinned) { + sortingWeight = 20; + } else { + sortingWeight = 40; } if (isHidden && keepHiddenLast) { - sortingWeight += 20; + sortingWeight += 5; if (isPreviewed) { - sortingWeight -= 10; + sortingWeight -= 1; } } if (!isAudioActive && keepInactiveLast) { - sortingWeight += 50; + sortingWeight += 5; if (isPreviewed) { - sortingWeight -= 10; + sortingWeight -= 1; } }