summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/PluginUpdater.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-19 18:19:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-19 18:19:42 +0000
commit3489e949e30e75d1f93610b2c6015b4ff95aefa2 (patch)
tree2ff6cda94a034b89358eea8279524be544b826f9 /plugins/PluginUpdater/src/PluginUpdater.cpp
parentfaceb04e370ff43eb8b2096d08f7375a9c292f2f (diff)
universal plugin downloader for the PluginUpdater plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@4745 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/PluginUpdater.cpp')
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index fbd28aa8af..bf914fb48b 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA.
UTF8_INTERFACE utfi;
#endif
-HANDLE hPluginUpdaterFolder = NULL, hCheckUpdates = NULL, hEmptyFolder = NULL;
+HANDLE hPluginUpdaterFolder = NULL, hEmptyFolder = NULL;
HINSTANCE hInst = NULL;
TCHAR tszRoot[MAX_PATH] = {0}, tszTempPath[MAX_PATH];
int hLangpack;
@@ -101,18 +101,24 @@ extern "C" __declspec(dllexport) int Load(void)
IcoLibInit();
// Add cheking update menu item
- hCheckUpdates = CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand);
+ CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand);
+ CreateServiceFunction(MODNAME"/ShowList", ShowListCommand);
CLISTMENUITEM mi = { sizeof(mi) };
- mi.position = -0x7FFFFFFF;
+ mi.position = 400010000;
mi.icolibItem = Skin_GetIconHandle("check_update");
mi.pszName = LPGEN("Check for plugin updates");
mi.pszService = MODNAME"/CheckUpdates";
Menu_AddMainMenuItem(&mi);
+ mi.position++;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_OPTIONS);
+ mi.pszName = LPGEN("Show full plugin list");
+ mi.pszService = MODNAME"/ShowList";
+ Menu_AddMainMenuItem(&mi);
+
// Add hotkey
- HOTKEYDESC hkd = {0};
- hkd.cbSize = sizeof(hkd);
+ HOTKEYDESC hkd = { sizeof(hkd) };
hkd.pszName = "Check for plugin updates";
hkd.pszDescription = "Check for plugin updates";
hkd.pszSection = "Plugin Updater";
@@ -133,7 +139,9 @@ extern "C" __declspec(dllexport) int Unload(void)
if (hCheckThread)
hCheckThread = NULL;
+ if (hListThread)
+ hListThread = NULL;
+
NetlibUnInit();
- DestroyServiceFunction(hCheckUpdates);
return 0;
}