diff --git a/src/windows_toasts/toast_document.py b/src/windows_toasts/toast_document.py index 6a372d5..d9b9359 100644 --- a/src/windows_toasts/toast_document.py +++ b/src/windows_toasts/toast_document.py @@ -273,11 +273,8 @@ def AddAction(self, action: ToastButton) -> None: if actionNodes.length > 0: actionsNode = actionNodes.item(0) else: - toastNode = self.GetElementByTagName("toast") - self.SetAttribute(toastNode, "template", "ToastGeneric") - actionsNode = self.xmlDocument.create_element("actions") - toastNode.append_child(actionsNode) + self.GetElementByTagName("toast").append_child(actionsNode) actionNode = self.xmlDocument.create_element("action") self.SetAttribute(actionNode, "content", action.content)