Fix notifications after switching the application

This commit is contained in:
Maschell 2023-02-16 11:51:23 +01:00
parent 567e286b6e
commit 8e18709fb7

View File

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