Skip to content

Commit

Permalink
Added the MultiVersus discord link
Browse files Browse the repository at this point in the history
  • Loading branch information
TekkaGB committed Aug 4, 2022
1 parent 49063ae commit 7a58fec
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Unverum/UI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,23 @@ private void Discord_Click(object sender, RoutedEventArgs e)
{
try
{
var discordLink = (managerSelected && GameBox.SelectedIndex == 7) || (!managerSelected && GameFilterBox.SelectedIndex == 7)
? "https://discord.gg/Se2XTnA" : "https://discord.gg/tgFrebr";
string discordLink;
var index = managerSelected ? GameBox.SelectedIndex : GameFilterBox.SelectedIndex;
switch (index)
{
case 5:
discordLink = "https://discord.gg/GVtG3Zu";
break;
case 7:
discordLink = "https://discord.gg/Se2XTnA";
break;
case 13:
discordLink = "https://discord.gg/mT6NqRdfgr";
break;
default:
discordLink = "https://discord.gg/tgFrebr";
break;
}
var ps = new ProcessStartInfo(discordLink)
{
UseShellExecute = true,
Expand Down

0 comments on commit 7a58fec

Please sign in to comment.