From 648844089c1786f1439ea026d1f3f5d0b757a414 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 15 Feb 2021 18:36:10 -0500 Subject: Move data parsing into a dedicated function Actually posting the notification is now the responsibility of a private function --- src/notifications/ManagerMac.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/notifications/ManagerMac.cpp (limited to 'src/notifications/ManagerMac.cpp') diff --git a/src/notifications/ManagerMac.cpp b/src/notifications/ManagerMac.cpp new file mode 100644 index 00000000..41aea0d1 --- /dev/null +++ b/src/notifications/ManagerMac.cpp @@ -0,0 +1,11 @@ +#include "Manager.h" + +#include + +#include "Utils.h" + +QString +NotificationsManager::formatNotification(const QString &text) +{ + return utils::markdownToHtml(text); +} -- cgit 1.5.1