mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
Fix cache clear at startup
This commit is contained in:
@@ -8,6 +8,7 @@ import { database } from '../../service/database';
|
||||
import { languageCodes } from '../../localization';
|
||||
import { useGameStore } from '../game';
|
||||
import { useModalStore } from '../modal';
|
||||
import { useUpdateLoopStore } from '../updateLoop';
|
||||
import { useVRCXUpdaterStore } from '../vrcxUpdater';
|
||||
import { useVrcxStore } from '../vrcx';
|
||||
import { watchState } from '../../service/watchState';
|
||||
@@ -20,6 +21,7 @@ export const useAdvancedSettingsStore = defineStore('AdvancedSettings', () => {
|
||||
const vrcxStore = useVrcxStore();
|
||||
const VRCXUpdaterStore = useVRCXUpdaterStore();
|
||||
const modalStore = useModalStore();
|
||||
const updateLoopStore = useUpdateLoopStore();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -874,6 +876,9 @@ export const useAdvancedSettingsStore = defineStore('AdvancedSettings', () => {
|
||||
vrcxStore.clearVRCXCacheFrequency = Math.trunc(
|
||||
parseInt(value, 10) * 3600 * 2
|
||||
);
|
||||
updateLoopStore.setNextClearVRCXCacheCheck(
|
||||
vrcxStore.clearVRCXCacheFrequency / 2
|
||||
);
|
||||
await configRepository.setString(
|
||||
'VRCX_clearVRCXCacheFrequency',
|
||||
vrcxStore.clearVRCXCacheFrequency.toString()
|
||||
|
||||
Reference in New Issue
Block a user