Skip to content

Commit

Permalink
Merge pull request #891 from jwcloverain/master
Browse files Browse the repository at this point in the history
fix Something went wrong: ImageLocation must be set
  • Loading branch information
Jessecar96 authored Jun 29, 2023
2 parents aff71e6 + ae7697a commit f345c65
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Steam Desktop Authenticator/ConfirmationFormWeb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ private async Task LoadData()
e.Graphics.FillRectangle(brush, panel.ClientRectangle);
}
};

PictureBox pictureBox = new PictureBox() { Width = 60, Height = 60, Location = new Point(20, 20), SizeMode = PictureBoxSizeMode.Zoom };
pictureBox.Load(confirmation.Icon);
panel.Controls.Add(pictureBox);

if (!string.IsNullOrEmpty(confirmation.Icon))
{
PictureBox pictureBox = new PictureBox() { Width = 60, Height = 60, Location = new Point(20, 20), SizeMode = PictureBoxSizeMode.Zoom };
pictureBox.Load(confirmation.Icon);
panel.Controls.Add(pictureBox);
}

Label nameLabel = new Label()
{
Expand Down

0 comments on commit f345c65

Please sign in to comment.