Skip to content

Commit

Permalink
Merge pull request #16 from MythicalLTD/15-fix-3x-click-to-open-a-server
Browse files Browse the repository at this point in the history
Done
  • Loading branch information
NaysKutzu authored Jun 2, 2023
2 parents 8b81094 + e9779da commit ab59812
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
13 changes: 1 addition & 12 deletions FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public FrmMain()
private bool isFirstLoad = true;
private async void FrmServerList_Load(object sender, EventArgs e)
{

loadSettings();
label1.Text = "Hi, " + FrmLogin.username;
try
{

Expand Down Expand Up @@ -154,9 +152,16 @@ private void pictureBox3_Click(object sender, EventArgs e)
this.Hide();
}

private void licensing1_Load(object sender, EventArgs e)
private void serverListBox_MouseClick(object sender, MouseEventArgs e)
{

if (serverListBox.SelectedItem != null && serverListBox.SelectedItem is string selectedServerName)
{
string identifier = selectedServerName.Substring(selectedServerName.IndexOf('(') + 1);
identifier = identifier.TrimEnd(')');
FrmServerController serverDetailsForm = new FrmServerController(identifier);
serverDetailsForm.Show();
this.Hide();
}
}
}

Expand Down
Binary file modified bin/Release/PteroController.exe
Binary file not shown.
Binary file modified bin/Release/PteroController.pdb
Binary file not shown.

0 comments on commit ab59812

Please sign in to comment.