diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-04 12:31:07 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-04 12:31:07 +0000 |
commit | 4dc918470c838072354fe22415669bd161fcdd13 (patch) | |
tree | d302c7d712386569ae800008a59e5400e6b2d3d9 /plugins/Toaster/src/toast_notification.cpp | |
parent | ffed67680e03ba7b8676ef9e51866c7ff47ae9a5 (diff) |
Toaster: more fixes, code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16017 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/toast_notification.cpp')
-rw-r--r-- | plugins/Toaster/src/toast_notification.cpp | 8 |
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 |