[Update] UI: Error Handling: VRC Mic Mute Sync: Add an error notification.

This commit is contained in:
Sakamoto Shiina
2025-06-10 17:17:10 +09:00
parent bc7f70729a
commit 5c7c730809

View File

@@ -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":