From 158437352cc5570a7883abd28b99ffe85aa00ffa Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 5 Sep 2025 17:36:43 +0000 Subject: [PATCH] Fix: quality not updating in the Audio Control Popover when changed --- audio_handlers.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/audio_handlers.go b/audio_handlers.go index 707bb2dd..f430b2df 100644 --- a/audio_handlers.go +++ b/audio_handlers.go @@ -133,7 +133,12 @@ func handleSetAudioQuality(c *gin.Context) { // Set the audio quality audioControlService.SetAudioQuality(quality) - c.JSON(200, gin.H{"success": true}) + // Return the updated configuration + current := audioControlService.GetCurrentAudioQuality() + c.JSON(200, gin.H{ + "success": true, + "config": current, + }) } // handleMicrophoneQuality handles GET requests for microphone quality presets @@ -166,5 +171,10 @@ func handleSetMicrophoneQuality(c *gin.Context) { // Set the microphone quality audioControlService.SetMicrophoneQuality(quality) - c.JSON(http.StatusOK, gin.H{"success": true}) + // Return the updated configuration + current := audioControlService.GetCurrentMicrophoneQuality() + c.JSON(http.StatusOK, gin.H{ + "success": true, + "config": current, + }) }