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() {