Fix notifications after switching the application

This commit is contained in:
Maschell 2023-02-16 11:51:23 +01:00
parent 567e286b6e
commit 8e18709fb7
1 changed files with 7 additions and 7 deletions

View File

@ -68,6 +68,13 @@ INITIALIZE_PLUGIN() {
deinitLogging();
}
DEINITIALIZE_PLUGIN() {
if (gNotificationModuleInitDone) {
NotificationModule_DeInitLibrary();
gNotificationModuleInitDone = false;
}
}
// Called whenever an application was started.
ON_APPLICATION_START() {
initLogging();
@ -89,10 +96,3 @@ ON_APPLICATION_REQUESTS_EXIT() {
}
deinitLogging();
}
ON_APPLICATION_ENDS() {
if (gNotificationModuleInitDone) {
NotificationModule_DeInitLibrary();
gNotificationModuleInitDone = false;
}
}