Skip to content

Commit

Permalink
More consistency with message boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessecar96 committed Jun 28, 2023
1 parent 4d0603a commit 75e7461
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Steam Desktop Authenticator/LoginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(ex.Message, "Steam Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
return;
}
Expand All @@ -115,7 +115,7 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(ex.Message, "Steam Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
return;
}
Expand Down Expand Up @@ -204,11 +204,11 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)
break;

case AuthenticatorLinker.LinkResult.MustConfirmEmail:
MessageBox.Show("Please check your email, and click the link Steam sent you before continuing.", "Steam Login");
MessageBox.Show("Please check your email, and click the link Steam sent you before continuing.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;

case AuthenticatorLinker.LinkResult.GeneralFailure:
MessageBox.Show("Error adding your phone number. Steam returned \"GeneralFailure\".", "Steam Login");
MessageBox.Show("Error adding your authenticator.", "Steam Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
return;
}
Expand Down Expand Up @@ -325,7 +325,7 @@ private void HandleManifest(Manifest man, bool IsRefreshing = false)
passKeyValid = man.VerifyPasskey(passKey);
if (!passKeyValid)
{
MessageBox.Show("That passkey is invalid. Please enter the same passkey you used for your other accounts.");
MessageBox.Show("That passkey is invalid. Please enter the same passkey you used for your other accounts.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else
Expand All @@ -339,11 +339,11 @@ private void HandleManifest(Manifest man, bool IsRefreshing = false)
man.SaveAccount(account, passKey != null, passKey);
if (IsRefreshing)
{
MessageBox.Show("Your login session was refreshed.");
MessageBox.Show("Your session was refreshed.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Mobile authenticator successfully linked. Please write down your revocation code: " + account.RevocationCode);
MessageBox.Show("Mobile authenticator successfully linked. Please write down your revocation code: " + account.RevocationCode, "Steam Login", MessageBoxButtons.OK);
}
this.Close();
}
Expand Down

0 comments on commit 75e7461

Please sign in to comment.