From 5c7c7308092d7998b755dd16cb4c20e48d24c5f0 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:17:10 +0900 Subject: [PATCH] [Update] UI: Error Handling: VRC Mic Mute Sync: Add an error notification. --- src-ui/logics/_useBackendErrorHandling.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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":