summaryrefslogtreecommitdiff
path: root/plugins/Folders/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
commit488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (patch)
tree96b0db981b4f5054f24d484902b597ba7da1c1a5 /plugins/Folders/src
parent9b35784c5042984fbb60785f0a4a41a64af545f6 (diff)
end of ME_OPT_INITIALISE related zoo in another plugins
Diffstat (limited to 'plugins/Folders/src')
-rw-r--r--plugins/Folders/src/dlg_handlers.cpp7
-rw-r--r--plugins/Folders/src/folders.cpp3
-rw-r--r--plugins/Folders/src/services.h3
3 files changed, 5 insertions, 8 deletions
diff --git a/plugins/Folders/src/dlg_handlers.cpp b/plugins/Folders/src/dlg_handlers.cpp
index a29911c2b5..1bc3745c7f 100644
--- a/plugins/Folders/src/dlg_handlers.cpp
+++ b/plugins/Folders/src/dlg_handlers.cpp
@@ -243,7 +243,7 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hWnd, UINT msg, WPARAM wParam, LPARAM l
return 0;
}
-static int OnOptionsInitialize(WPARAM wParam, LPARAM)
+int OnOptionsInitialize(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = {};
odp.position = 100000000;
@@ -255,8 +255,3 @@ static int OnOptionsInitialize(WPARAM wParam, LPARAM)
g_plugin.addOptions(wParam, &odp);
return 0;
}
-
-void InitOptions()
-{
- HookEvent(ME_OPT_INITIALISE, OnOptionsInitialize);
-}
diff --git a/plugins/Folders/src/folders.cpp b/plugins/Folders/src/folders.cpp
index ad83692bd4..a9dd862942 100644
--- a/plugins/Folders/src/folders.cpp
+++ b/plugins/Folders/src/folders.cpp
@@ -49,7 +49,8 @@ int CMPlugin::Load()
{
InitServices();
InitEvents();
- InitOptions();
+
+ HookEvent(ME_OPT_INITIALISE, OnOptionsInitialize);
return 0;
}
diff --git a/plugins/Folders/src/services.h b/plugins/Folders/src/services.h
index 419de6cad9..865bc82cc8 100644
--- a/plugins/Folders/src/services.h
+++ b/plugins/Folders/src/services.h
@@ -29,6 +29,7 @@ extern wchar_t szMirandaPath[MAX_FOLDERS_PATH];
extern wchar_t szUserDataPath[MAX_FOLDERS_PATH];
int InitServices();
-void InitOptions();
+
+int OnOptionsInitialize(WPARAM, LPARAM);
#endif //M_FOLDERS_PROVIDED_SERVICES_H \ No newline at end of file