mirror of
https://github.com/wiiu-env/SwipSwapMe.git
synced 2024-11-22 04:29:17 +01:00
Fix notifications after switching the application
This commit is contained in:
parent
567e286b6e
commit
8e18709fb7
14
src/main.cpp
14
src/main.cpp
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user