This commit is contained in:
Natsumi
2025-09-02 22:30:12 +12:00
parent 6bbc46c9c4
commit d4bf9ef0f6
2 changed files with 12 additions and 5 deletions

View File

@@ -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);
}
}
});

View File

@@ -2048,7 +2048,7 @@
return;
}
handleUserDialogTab(obj.name, userId);
userDialogLastActiveTab.value = obj.label;
userDialogLastActiveTab.value = obj.name;
}
function showPronounsDialog() {