summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r--plugins/Toaster/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 10dea8e278..4fd340fb81 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -28,9 +28,10 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_POPUP,
/////////////////////////////////////////////////////////////////////////////////////////
-static int OnPreShutdown(WPARAM, LPARAM)
+static int OnShutdown(WPARAM, LPARAM)
{
CleanupClasses();
+ HideAllToasts();
DeleteDirectoryTreeW(wszTempDir);
return 0;
}
@@ -43,7 +44,7 @@ int CMPlugin::Load()
}
HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
- HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
+ HookEvent(ME_SYSTEM_SHUTDOWN, &OnShutdown);
InitServices();