1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

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

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
}
}
}
}
}