Skip to content

Commit 6e6db2c

Browse files
committed
fix iconpath other than default icon
1 parent de095ef commit 6e6db2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/Notification.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public static void Show(string title, string subTitle, string iconPath)
1919
{
2020
/* Using Windows Notification System */
2121
var Icon = !File.Exists(iconPath)
22-
? ImageLoader.Load(Path.Combine(Constant.ProgramDirectory, "Images\\app.png"))
23-
: ImageLoader.Load(iconPath);
22+
? Path.Combine(Constant.ProgramDirectory, "Images\\app.png")
23+
: iconPath;
2424

2525
var xml = $"<?xml version=\"1.0\"?><toast><visual><binding template=\"ToastImageAndText04\"><image id=\"1\" src=\"{Icon}\" alt=\"meziantou\"/><text id=\"1\">{title}</text>" +
2626
$"<text id=\"2\">{subTitle}</text></binding></visual></toast>";

0 commit comments

Comments
 (0)