summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AutoShutdown/src/main.cpp')
-rw-r--r--plugins/AutoShutdown/src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/AutoShutdown/src/main.cpp b/plugins/AutoShutdown/src/main.cpp
index f9f7d81ce6..9fa00794ef 100644
--- a/plugins/AutoShutdown/src/main.cpp
+++ b/plugins/AutoShutdown/src/main.cpp
@@ -74,15 +74,14 @@ int CMPlugin::Load()
InitShutdownSvc();
InitWatcher(); /* before InitSettingsDlg() */
InitSettingsDlg();
- InitOptions();
+ HookEvent(ME_OPT_INITIALISE, OptInit);
HookEvent(ME_SYSTEM_MODULESLOADED, ShutdownModulesLoaded);
return 0;
}
int CMPlugin::Unload()
{
- UninitOptions();
UninitWatcher(); /* before UninitFrame() */
UninitFrame();
UninitShutdownSvc();