Skip to content

Commit 222735c

Browse files
v2.0.2
1 parent b76e33d commit 222735c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

EZCode/EZProj.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class EZProj
5151
/// <summary>
5252
/// Icon for project
5353
/// </summary>
54-
public string IconPath { get; set; }
54+
public string? IconPath { get; set; }
5555
/// <summary>
5656
/// Icon for project
5757
/// </summary>
@@ -186,7 +186,8 @@ public string ReadConvert(string? _filecontent = null)
186186
Debug = false;
187187
CloseOnEnd = true;
188188
Name ??= $"EZCode_v{EzCode.Version}";
189-
IconPath ??= Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "EZCode", "EZCode", "EZCode_Logo.ico");
189+
string iconpath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "EZCode", "EZCode", "EZCode_Logo.ico");
190+
IconPath ??= File.Exists(iconpath) ? iconpath : null;
190191

191192
string filecontent = FileContents;
192193
if (_filecontent != null) filecontent = _filecontent;

0 commit comments

Comments
 (0)