From d4bf9ef0f68c53ee9efa43e0887ff85ef7f00ac7 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 2 Sep 2025 22:30:12 +1200 Subject: [PATCH] Fix --- src-electron/main.js | 15 +++++++++++---- src/components/dialogs/UserDialog/UserDialog.vue | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src-electron/main.js b/src-electron/main.js index 1c13211f..eb863f80 100644 --- a/src-electron/main.js +++ b/src-electron/main.js @@ -130,10 +130,17 @@ if (!gotTheLock) { } else { app.on('second-instance', (event, commandLine, workingDirectory) => { if (mainWindow && commandLine.length >= 2) { - mainWindow.webContents.send( - 'launch-command', - commandLine.pop().trim().replace(strip_vrcx_prefix_regex, '') - ); + try { + mainWindow.webContents.send( + 'launch-command', + commandLine + .pop() + .trim() + .replace(strip_vrcx_prefix_regex, '') + ); + } catch (err) { + console.error('Error processing second-instance command:', err); + } } }); diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 8c604cd7..ac959b25 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -2048,7 +2048,7 @@ return; } handleUserDialogTab(obj.name, userId); - userDialogLastActiveTab.value = obj.label; + userDialogLastActiveTab.value = obj.name; } function showPronounsDialog() {