Skip to content

Commit

Permalink
Resolves sourcechord#87
Browse files Browse the repository at this point in the history
  • Loading branch information
svr333 committed Nov 20, 2021
1 parent 9acc251 commit a8f88f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FluentWPF/Utility/IconHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public static ImageSource AppIcon
{
if (appIcon == null)
{
var path = System.Reflection.Assembly.GetEntryAssembly().Location;
appIcon = GetIcon(path);
var assembly = System.Reflection.Assembly.GetEntryAssembly();
assembly ??= System.Reflection.Assembly.GetCallingAssembly();

appIcon = GetIcon(assembly.Location);
}
return appIcon;
}
Expand Down

0 comments on commit a8f88f7

Please sign in to comment.