VRC status checking

This commit is contained in:
Natsumi
2025-10-02 14:13:16 +13:00
parent f4d4754230
commit cac7bf6f17
10 changed files with 118 additions and 22 deletions
+6
View File
@@ -25,6 +25,7 @@ import { useAdvancedSettingsStore } from './settings/advanced';
import { useUpdateLoopStore } from './updateLoop';
import { useUserStore } from './user';
import { useWorldStore } from './world';
import { useVrcStatusStore } from './vrcStatus';
import { useI18n } from 'vue-i18n';
import Noty from 'noty';
@@ -45,6 +46,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
const avatarProviderStore = useAvatarProviderStore();
const gameLogStore = useGameLogStore();
const updateLoopStore = useUpdateLoopStore();
const vrcStatusStore = useVrcStatusStore();
const { t } = useI18n();
const state = reactive({
@@ -87,6 +89,10 @@ export const useVrcxStore = defineStore('Vrcx', () => {
state.windowState = newState.windowState;
debounce(saveVRCXWindowOption, 300)();
});
window.electron.onBrowserFocus(() => {
vrcStatusStore.onBrowserFocus();
});
}
state.databaseVersion = await configRepository.getInt(