improve ux on crash recovery

This commit is contained in:
pa
2025-12-30 21:35:04 +09:00
committed by Natsumi
parent 5e9dcfbd3f
commit 7ad89aaeb9
3 changed files with 10 additions and 6 deletions
+8 -4
View File
@@ -531,10 +531,14 @@ export const useVrcxStore = defineStore('Vrcx', () => {
if (command.startsWith('crash/')) {
const crashMessage = command.replace('crash/', '');
console.error('VRCX recovered from crash:', crashMessage);
ElMessageBox.alert(
crashMessage,
t('message.crash.vrcx_crash')
).catch(() => {});
const Sentry = await import('@sentry/vue');
Sentry.captureMessage(`crash message: ${crashMessage}`, {
level: 'fatal'
});
ElMessage({
message: t('message.crash.vrcx_reload'),
type: 'success'
});
return;
}
eventLaunchCommand(command);