[Update/bugfix] UI: Add disable/enable UI function when osc query is disabled.
Fix the error that the mic mute sync couldn't enable/disable.
This commit is contained in:
@@ -12,7 +12,7 @@ export const useEnableVrcMicMuteSync = () => {
|
||||
|
||||
const toggleEnableVrcMicMuteSync = () => {
|
||||
pendingEnableVrcMicMuteSync();
|
||||
if (currentEnableVrcMicMuteSync.data) {
|
||||
if (currentEnableVrcMicMuteSync.data.is_enabled) {
|
||||
asyncStdoutToPython("/set/disable/vrc_mic_mute_sync");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable/vrc_mic_mute_sync");
|
||||
|
||||
Reference in New Issue
Block a user