use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:23:17 +09:00
parent b9c874bed0
commit ae0152c28e
9 changed files with 47 additions and 8 deletions
+8
View File
@@ -240,6 +240,13 @@ export const useVrcxStore = defineStore('Vrcx', () => {
proxyServer.value = value;
}
/**
* @param {boolean} value
*/
function setIpcEnabled(value) {
ipcEnabled.value = value;
}
/**
*
*/
@@ -870,6 +877,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
appStartAt,
proxyServer,
setProxyServer,
setIpcEnabled,
currentlyDroppingFile,
isRegistryBackupDialogVisible,
ipcEnabled,