summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-09-19 20:59:08 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-09-19 20:59:08 +0000
commitb741839a3b40ef50eaab1b745bdf5a9c0456ec45 (patch)
tree553a79f0a3580c8d1ba7c1098091f2c0c6d28139 /plugins/Toaster/src/main.cpp
parente87725cb4be71a58c0ddf4d0b0b6d92b8cc47d7b (diff)
Toaster: added simple options page
git-svn-id: http://svn.miranda-ng.org/main/trunk@15404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r--plugins/Toaster/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index a005a1b8c6..e7006bb52d 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -39,7 +39,9 @@ extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
+ HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
+
InitServices();
GetEnvironmentVariableW(L"TEMP", wszTempDir, MAX_PATH);
@@ -49,11 +51,6 @@ extern "C" int __declspec(dllexport) Load(void)
if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
CreateDirectoryTreeT(wszTempDir);
- if (FAILED(TryCreateShortcut()))
- {
- MessageBox(NULL, TranslateT("Failed to create shortcut"), _T(MODULE), MB_OK | MB_ICONERROR);
- }
-
return 0;
}