From 4dc918470c838072354fe22415669bd161fcdd13 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 4 Jan 2016 12:31:07 +0000 Subject: Toaster: more fixes, code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16017 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/toast_notification.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/Toaster/src/toast_notification.cpp') 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(this, &ToastNotification::OnDismiss).Get(), &_ertDismissed); notification->add_Failed(Callback(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 -- cgit v1.2.3