mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
fix: saveVRCXWindowOption
This commit is contained in:
+3
-3
@@ -73,18 +73,18 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
|||||||
window.electron.onWindowPositionChanged((event, position) => {
|
window.electron.onWindowPositionChanged((event, position) => {
|
||||||
state.locationX = position.x;
|
state.locationX = position.x;
|
||||||
state.locationY = position.y;
|
state.locationY = position.y;
|
||||||
debounce(saveVRCXWindowOption(), 300);
|
debounce(saveVRCXWindowOption, 300)();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.electron.onWindowSizeChanged((event, size) => {
|
window.electron.onWindowSizeChanged((event, size) => {
|
||||||
state.sizeWidth = size.width;
|
state.sizeWidth = size.width;
|
||||||
state.sizeHeight = size.height;
|
state.sizeHeight = size.height;
|
||||||
debounce(saveVRCXWindowOption(), 300);
|
debounce(saveVRCXWindowOption, 300)();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.electron.onWindowStateChange((event, state) => {
|
window.electron.onWindowStateChange((event, state) => {
|
||||||
state.windowState = state;
|
state.windowState = state;
|
||||||
debounce(saveVRCXWindowOption(), 300);
|
debounce(saveVRCXWindowOption, 300)();
|
||||||
});
|
});
|
||||||
|
|
||||||
// window.electron.onWindowClosed((event) => {
|
// window.electron.onWindowClosed((event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user