diff --git a/qtc-net-client-2/Forms/Main.cs b/qtc-net-client-2/Forms/Main.cs index 2033af6..6efa1e3 100644 --- a/qtc-net-client-2/Forms/Main.cs +++ b/qtc-net-client-2/Forms/Main.cs @@ -37,7 +37,7 @@ namespace qtc_net_client_2 { // not logged in, load the login form Login frmLogin = new Login(_apiService); - var result = frmLogin.ShowDialog(this); + var result = frmLogin.ShowDialog(); if (result == DialogResult.OK) await OnSuccessfulLogin(); @@ -48,7 +48,7 @@ namespace qtc_net_client_2 { // just reshow the login dialog lol Login frmLogin = new Login(_apiService); - var result = frmLogin.ShowDialog(this); + var result = frmLogin.ShowDialog(); if (result == DialogResult.OK) await OnSuccessfulLogin(); @@ -67,7 +67,7 @@ namespace qtc_net_client_2 if (!_gatewayService.InLobby) await _gatewayService.JoinLobbyAsync(); Chat frmChat = new Chat(_gatewayService, _apiService); - frmChat.ShowDialog(this); + frmChat.Show(); return; } @@ -78,7 +78,7 @@ namespace qtc_net_client_2 if (_gatewayService.CurrentRoom != room) await _gatewayService.JoinRoomAsync(room); Chat frmChat = new Chat(_gatewayService, _apiService); - frmChat.ShowDialog(this); + frmChat.Show(); } } } @@ -146,7 +146,7 @@ namespace qtc_net_client_2 if (res.Data != null && res.Success) { Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService); - frmProfile.ShowDialog(this); + frmProfile.ShowDialog(); } } } @@ -155,7 +155,7 @@ namespace qtc_net_client_2 private void llblEditProfile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ProfileEdit frmProfileEdit = new ProfileEdit(_apiService); - var dialogResult = frmProfileEdit.ShowDialog(this); + var dialogResult = frmProfileEdit.ShowDialog(); if (dialogResult == DialogResult.OK) { MessageBox.Show("If you updated your username, hit the refresh button to see it update on your lists.\nThe top username will not update until you restart your client."); @@ -179,7 +179,7 @@ namespace qtc_net_client_2 if (res.Data != null && res.Success) { Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService); - frmProfile.ShowDialog(this); + frmProfile.ShowDialog(); } } }