summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/toast_notification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/toast_notification.cpp')
-rw-r--r--plugins/Toaster/src/toast_notification.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp
index 70a2872396..0708be6ec4 100644
--- a/plugins/Toaster/src/toast_notification.cpp
+++ b/plugins/Toaster/src/toast_notification.cpp
@@ -23,6 +23,7 @@ ToastNotification::ToastNotification(
notification->add_Dismissed(Callback<ToastDismissHandler>(this, &ToastNotification::OnDismiss).Get(), &_ertDismissed);
notification->add_Failed(Callback<ToastFailHandler>(this, &ToastNotification::OnFail).Get(), &_ertFailed);
notifier->Show(notification.Get());
+ CallPopupProc(UM_INITPOPUP);
}
ToastNotification::~ToastNotification()
@@ -101,4 +102,11 @@ HRESULT ToastNotification::OnFail(_In_ ABI::Windows::UI::Notifications::IToastNo
{
Destroy();
return S_OK;
+}
+
+void ToastNotification::Destroy()
+{
+ CallPopupProc(UM_FREEPLUGINDATA);
+ mir_cslock lck(csNotifications);
+ lstNotifications.remove(this);
} \ No newline at end of file