Archived
1
0

Toast notifications for downloads

This commit is contained in:
Michael Gordeev
2018-10-24 21:07:08 +03:00
parent dc8afa2891
commit f545edc6c1
5 changed files with 78 additions and 12 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ namespace FoxTube.Background
{
XmlDocument template = new XmlDocument();
template.LoadXml($@"<toast activationType='foreground' launch='changelog-{version.Replace(".", "-")}'>
template.LoadXml($@"<toast activationType='foreground' launch='changelog|{version.Replace(".", "-")}'>
<visual>
<binding template='ToastGeneric'>
<image placement='hero' src='http://foxgame.hol.es/FoxTubeAssets/WhatsNewThumb.png'/>
@@ -27,7 +27,7 @@ namespace FoxTube.Background
{
XmlDocument template = new XmlDocument();
template.LoadXml($@"<toast activationType='foreground' launch='video-{id}'>
template.LoadXml($@"<toast activationType='foreground' launch='video|{id}'>
<visual>
<binding template='ToastGeneric'>
<image placement='hero' src='{thumbnail}'/>
@@ -50,7 +50,7 @@ namespace FoxTube.Background
{
XmlDocument template = new XmlDocument();
template.LoadXml($@"<toast activationType='foreground' launch='inbox-{id}'>
template.LoadXml($@"<toast activationType='foreground' launch='inbox|{id}'>
<visual>
<binding template='ToastGeneric'>
<image placement='hero' src='{thumbnail ?? "http://foxgame.hol.es/FoxTubeAssets/AnnouncementThumb.png"}'/>