diff --git a/src-ui/logics/_useBackendErrorHandling.js b/src-ui/logics/_useBackendErrorHandling.js index d5987a1b..c1cdd15f 100644 --- a/src-ui/logics/_useBackendErrorHandling.js +++ b/src-ui/logics/_useBackendErrorHandling.js @@ -15,6 +15,8 @@ import { useDeepLAuthKey, + useEnableVrcMicMuteSync, + useOscIpAddress, useWebsocket, } from "@logics_configs"; @@ -34,6 +36,8 @@ export const _useBackendErrorHandling = () => { const { updateDeepLAuthKey } = useDeepLAuthKey(); + const { updateEnableVrcMicMuteSync } = useEnableVrcMicMuteSync(); + const { updateOscIpAddress } = useOscIpAddress(); const { updateEnableWebsocket, updateWebsocketHost, updateWebsocketPort } = useWebsocket(); @@ -130,6 +134,14 @@ export const _useBackendErrorHandling = () => { } return; + case "/set/enable/vrc_mic_mute_sync": + // Normally, this path shouldn't happen because VRC Mic Mute Sync is disabled and can't be turned on from the UI. + if (message === "Cannot enable VRC mic mute sync while OSC query is disabled") { + updateEnableVrcMicMuteSync(data); + showNotification_Error("Cannot enable VRC Mic Mute Sync while OSC query is disabled"); + } + return; + // Advanced Settings, error messages are set by Backend (EN only) case "/set/data/osc_ip_address":