[bugfix] Fix settings data has not sync when init startup the software.(Mic Word Filter, VRC Mic Mute Sync)

This commit is contained in:
Sakamoto Shiina
2025-07-14 11:06:13 +09:00
parent 600faaf608
commit 5ca7d73be4
3 changed files with 26 additions and 2 deletions

View File

@@ -107,6 +107,10 @@ export const useOthers = () => {
}
};
const getSuccessEnableVrcMicMuteSync = (is_enabled) => {
updateEnableVrcMicMuteSync(old => ({ ...old.data, is_enabled: is_enabled }));
};
const setSuccessEnableVrcMicMuteSync = (is_enabled) => {
updateEnableVrcMicMuteSync(old => ({ ...old.data, is_enabled: is_enabled }));
showNotification_SaveSuccess();
@@ -199,6 +203,7 @@ export const useOthers = () => {
// VRC Mic Mute Sync
currentEnableVrcMicMuteSync,
getEnableVrcMicMuteSync,
getSuccessEnableVrcMicMuteSync,
toggleEnableVrcMicMuteSync,
updateEnableVrcMicMuteSync,
setSuccessEnableVrcMicMuteSync,