Fix database upgrade

This commit is contained in:
Natsumi
2025-07-15 09:45:53 +12:00
parent fcfb9c6193
commit a8b2dadeda
3 changed files with 27 additions and 7 deletions
+3 -2
View File
@@ -95,7 +95,6 @@ export const useVrcxStore = defineStore('Vrcx', () => {
'VRCX_databaseVersion',
0
);
updateDatabaseVersion();
state.clearVRCXCacheFrequency = await configRepository.getInt(
'VRCX_clearVRCXCacheFrequency',
@@ -233,6 +232,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
}
async function updateDatabaseVersion() {
// requires dbVars.userPrefix to be already set
const databaseVersion = 12;
let msgBox;
if (state.databaseVersion < databaseVersion) {
@@ -768,6 +768,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
processScreenshot,
ipcEvent,
dragEnterCef,
backupVrcRegistry
backupVrcRegistry,
updateDatabaseVersion
};
});