mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix error on electron close
This commit is contained in:
@@ -874,8 +874,6 @@ function disposeOverlay() {
|
|||||||
|
|
||||||
app.on('before-quit', function () {
|
app.on('before-quit', function () {
|
||||||
disposeOverlay();
|
disposeOverlay();
|
||||||
|
|
||||||
mainWindow.webContents.send('windowClosed');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('window-all-closed', function () {
|
app.on('window-all-closed', function () {
|
||||||
|
|||||||
@@ -86,10 +86,6 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
|||||||
state.windowState = newState.windowState;
|
state.windowState = newState.windowState;
|
||||||
debounce(saveVRCXWindowOption, 300)();
|
debounce(saveVRCXWindowOption, 300)();
|
||||||
});
|
});
|
||||||
|
|
||||||
// window.electron.onWindowClosed((event) => {
|
|
||||||
// window.$app.saveVRCXWindowOption();
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
state.databaseVersion = await configRepository.getInt(
|
state.databaseVersion = await configRepository.getInt(
|
||||||
|
|||||||
Reference in New Issue
Block a user