Skip to content

Commit

Permalink
updates the icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukankaratas committed Nov 12, 2024
1 parent 254c7c6 commit b07785f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ public SpeckleTeklaPanelHost()
this.Text = "Speckle (Beta)";
this.Name = "Speckle (Beta)";

string version = GetVersion().ToString()[1..]; // removes the 'v' from version
string resourcePath = $"Speckle.Connector.Tekla{version}.Resources.et_element_Speckle.bmp";
using (
Bitmap bmp = new Bitmap(
GetType().Assembly.GetManifestResourceStream("Speckle.Connector.Tekla2024.Resources.et_element_Speckle.bmp")
?? throw new InvalidOperationException()
GetType().Assembly.GetManifestResourceStream(resourcePath)
?? throw new InvalidOperationException($"Could not find resource: {resourcePath}")
)
)
{
Expand Down

0 comments on commit b07785f

Please sign in to comment.