This commit is contained in:
Natsumi
2025-12-11 16:29:09 +11:00
parent 99c1c55ab8
commit 3d5964b6c1
4 changed files with 30 additions and 9 deletions
+5 -1
View File
@@ -759,7 +759,11 @@ export const useUserStore = defineStore('User', () => {
* @param {string} userId
*/
function showUserDialog(userId) {
if (!userId || typeof userId !== 'string') {
if (
!userId ||
typeof userId !== 'string' ||
userId === 'usr_00000000-0000-0000-0000-000000000000'
) {
return;
}
const D = userDialog.value;
+19 -6
View File
@@ -355,12 +355,25 @@ export const useVrcxStore = defineStore('Vrcx', () => {
displayName: user.displayName
});
}
newPath = await AppApi.AddScreenshotMetadata(
path,
JSON.stringify(metadata),
location.worldId,
advancedSettingsStore.screenshotHelperModifyFilename
);
try {
newPath = await AppApi.AddScreenshotMetadata(
path,
JSON.stringify(metadata),
location.worldId,
advancedSettingsStore.screenshotHelperModifyFilename
);
} catch (e) {
console.error('Failed to add screenshot metadata', e);
if (e.message.includes('UnauthorizedAccessException')) {
ElMessage({
message:
'Failed to add screenshot metadata, access denied. Make sure VRCX has permission to access the screenshot folder.',
type: 'error',
duration: 10000
});
}
return;
}
if (!newPath) {
console.error('Failed to add screenshot metadata', path);
return;