summaryrefslogtreecommitdiff
path: root/plugins/Toaster
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster')
-rw-r--r--plugins/Toaster/src/toast_notification.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp
index 7128bce13b..aa1f6ee5df 100644
--- a/plugins/Toaster/src/toast_notification.cpp
+++ b/plugins/Toaster/src/toast_notification.cpp
@@ -30,11 +30,14 @@ HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXml
HXML xmlVisualNode = xmlAddChild(xmlToast, L"visual", NULL);
HXML xmlBindingNode = xmlAddChild(xmlVisualNode, L"binding", NULL);
- xmlAddAttr(xmlBindingNode, L"template", L"ToastGeneric");
+ xmlAddAttr(xmlBindingNode, L"template", IsWinVer10Plus() ? L"ToastGeneric" : L"ToastImageAndText02");
if (_imagePath)
{
HXML xmlImageNode = xmlAddChild(xmlBindingNode, L"image", NULL);
- xmlAddAttr(xmlImageNode, L"placement", L"appLogoOverride");
+
+ if (IsWinVer10Plus())
+ xmlAddAttr(xmlImageNode, L"placement", L"appLogoOverride");
+
xmlAddAttr(xmlImageNode, L"id", L"1");
xmlAddAttr(xmlImageNode, L"src", CMStringW(FORMAT, L"file:///%s", _imagePath));
}