Small fixes

This commit is contained in:
Natsumi
2024-01-17 07:14:27 +13:00
parent 3204a5d012
commit bc0f93e782
6 changed files with 121 additions and 94 deletions

View File

@@ -37,13 +37,10 @@ namespace VRCX
Program.LaunchDebug = true;
}
if (processList.Length > 1 && string.IsNullOrEmpty(LaunchCommand))
{
var result = MessageBox.Show("VRCX is already running, start another instance?", "VRCX", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
return;
}
if (processList.Length > 1 && !string.IsNullOrEmpty(LaunchCommand))
return; // if we're launching with a parameter, allow it
// if we're launching a second instance, focus the first instance then exit
if (processList.Length > 1)
{
IPCToMain();