Skip to content

Commit

Permalink
AppName support
Browse files Browse the repository at this point in the history
  • Loading branch information
BobVul committed Jun 9, 2016
1 parent 51c7d5b commit 5a42230
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Bread/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ public class Message

[JsonConverter(typeof(ImageJsonConverter))]
public Image Image { get; set; }

public string AppName { get; set; }
}
}
3 changes: 2 additions & 1 deletion Growler/Growler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ protected override void HandleNotification(Notification notification, string dis
Title = notification.Title,
Body = notification.Description,
Silent = this.GetSettingOrDefault<bool>(GrowlerSetting.Silent, false),
Image = notification.Image
Image = notification.Image,
AppName = notification.ApplicationName
};

LaunchToaster(bread);
Expand Down
4 changes: 4 additions & 0 deletions Toaster/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ static void Main()
{
Text = bread.Body
},
BodyTextLine2 = new ToastText()
{
Text = bread.AppName,
},
AppLogoOverride = new ToastAppLogo
{
Source = new ToastImageSource("file:///" + imagePath)
Expand Down

0 comments on commit 5a42230

Please sign in to comment.