Make Tray compatible with .NET Core (#6983)

By default .NET Core sets UseShellExecute to false due to being cross platform
This commit is contained in:
junglebus 2020-01-21 04:23:47 +11:00 committed by garfield69
parent 860168fe44
commit 67491cb4f6
1 changed files with 8 additions and 2 deletions

View File

@ -114,7 +114,13 @@ namespace Jackett.Tray
private void toolStripMenuItemWebUI_Click(object sender, EventArgs e)
{
Process.Start("http://127.0.0.1:" + serverConfig.Port);
ProcessStartInfo psi = new ProcessStartInfo
{
FileName = "http://127.0.0.1:" + serverConfig.Port,
UseShellExecute = true
};
Process.Start(psi);
}
private void toolStripMenuItemShutdown_Click(object sender, EventArgs e)
@ -320,4 +326,4 @@ namespace Jackett.Tray
}
}
}
}
}