mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
VRC status checking
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user