Fix VRCX.json being slow to save

This commit is contained in:
Natsumi
2025-10-16 13:19:40 +11:00
parent 23d9850a25
commit 617d2e161d
6 changed files with 37 additions and 107 deletions

View File

@@ -90,7 +90,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
});
window.electron.onWindowStateChange((event, newState) => {
state.windowState = newState.windowState;
state.windowState = newState.toString();
debounce(saveVRCXWindowOption, 300)();
});
@@ -364,7 +364,6 @@ export const useVrcxStore = defineStore('Vrcx', () => {
VRCXStorage.Set('VRCX_SizeWidth', state.sizeWidth.toString());
VRCXStorage.Set('VRCX_SizeHeight', state.sizeHeight.toString());
VRCXStorage.Set('VRCX_WindowState', state.windowState);
VRCXStorage.Flush();
}
}