mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
Random fixes
This commit is contained in:
@@ -364,7 +364,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
}
|
||||
if (
|
||||
userStore.userDialog.visible &&
|
||||
userStore.userDialog.ref?.$location.tag === ref.id
|
||||
userStore.userDialog.ref?.$location?.tag === ref.id
|
||||
) {
|
||||
userStore.applyUserDialogLocation();
|
||||
}
|
||||
|
||||
+14
-5
@@ -397,6 +397,10 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
location.worldId,
|
||||
advancedSettingsStore.screenshotHelperModifyFilename
|
||||
);
|
||||
if (!newPath) {
|
||||
console.error('Failed to add screenshot metadata', path);
|
||||
return;
|
||||
}
|
||||
console.log('Screenshot metadata added', newPath);
|
||||
}
|
||||
if (advancedSettingsStore.screenshotHelperCopyToClipboard) {
|
||||
@@ -618,11 +622,16 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
|
||||
async function backupVrcRegistry(name) {
|
||||
let regJson;
|
||||
if (WINDOWS) {
|
||||
regJson = await AppApi.GetVRChatRegistry();
|
||||
} else {
|
||||
regJson = await AppApi.GetVRChatRegistryJson();
|
||||
regJson = JSON.parse(regJson);
|
||||
try {
|
||||
if (WINDOWS) {
|
||||
regJson = await AppApi.GetVRChatRegistry();
|
||||
} else {
|
||||
regJson = await AppApi.GetVRChatRegistryJson();
|
||||
regJson = JSON.parse(regJson);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to get VRChat registry for backup:', e);
|
||||
return;
|
||||
}
|
||||
const newBackup = {
|
||||
name,
|
||||
|
||||
@@ -200,6 +200,15 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
} finally {
|
||||
checkingForVRCXUpdate.value = false;
|
||||
}
|
||||
if (response.status !== 200) {
|
||||
ElMessage({
|
||||
message: t('message.vrcx_updater.failed', {
|
||||
message: `${response.status} ${response.data}`
|
||||
}),
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
pendingVRCXUpdate.value = false;
|
||||
const json = JSON.parse(response.data);
|
||||
if (AppDebug.debugWebRequests) {
|
||||
@@ -263,6 +272,15 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
} finally {
|
||||
checkingForVRCXUpdate.value = false;
|
||||
}
|
||||
if (response.status !== 200) {
|
||||
ElMessage({
|
||||
message: t('message.vrcx_updater.failed', {
|
||||
message: `${response.status} ${response.data}`
|
||||
}),
|
||||
type: 'error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
const json = JSON.parse(response.data);
|
||||
if (AppDebug.debugWebRequests) {
|
||||
console.log(json, response);
|
||||
|
||||
Reference in New Issue
Block a user