fix: spectrum count is not updating when chaning amount

This commit is contained in:
Zhe Fang
2025-12-14 09:26:19 -05:00
parent a3bc148816
commit 99f0b9443b

View File

@@ -832,6 +832,14 @@ namespace BetterLyrics.WinUI3.Controls
_isLayoutChanged = true;
}
}
else if(message.Sender == LyricsWindowStatus?.LyricsBackgroundSettings)
{
if (message.PropertyName == nameof(LyricsBackgroundSettings.SpectrumCount))
{
_spectrumAnalyzer?.StopCapture();
_spectrumAnalyzer?.StartCapture();
}
}
}
public void Receive(PropertyChangedMessage<double> message)