[Update] UI: Error Handling: VRC Mic Mute Sync: Add an error notification.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user