Skip to content

Commit

Permalink
refactor: remove setting toast to ToastGeneric
Browse files Browse the repository at this point in the history
I don't believe this does anything as it's all dependent on the attribute in 'binding'
  • Loading branch information
DatGuy1 committed Aug 14, 2023
1 parent c3e8252 commit f28894e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/windows_toasts/toast_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f28894e

Please sign in to comment.