summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj1
-rw-r--r--plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj.filters3
-rw-r--r--plugins/PluginUpdater/src/Events.cpp2
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp16
4 files changed, 11 insertions, 11 deletions
diff --git a/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj b/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj
index 13e7f9345c..f890f4cfc0 100644
--- a/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj
+++ b/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj
@@ -188,7 +188,6 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\checksum.cpp" />
- <ClCompile Include="src\DlgListNew.cpp" />
<ClCompile Include="src\DlgUpdate.cpp" />
<ClCompile Include="src\Events.cpp" />
<ClCompile Include="src\Minizip\ioapi.c">
diff --git a/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj.filters b/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj.filters
index 88af02372f..d87dddc0b2 100644
--- a/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj.filters
+++ b/plugins/PluginUpdater/PluginUpdaterIM_10.vcxproj.filters
@@ -94,9 +94,6 @@
<ClCompile Include="src\Minizip\unzip.c">
<Filter>Source Files\Minizip</Filter>
</ClCompile>
- <ClCompile Include="src\DlgListNew.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="src\DlgUpdate.cpp">
<Filter>Source Files</Filter>
</ClCompile>
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp
index c740a77f44..470390ad4f 100644
--- a/plugins/PluginUpdater/src/Events.cpp
+++ b/plugins/PluginUpdater/src/Events.cpp
@@ -58,12 +58,14 @@ INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
return 0;
}
+#if MIRANDA_VER >= 0x0A00
INT_PTR ShowListCommand(WPARAM wParam,LPARAM lParam)
{
opts.bSilent = false;
DoGetList(true);
return 0;
}
+#endif
INT_PTR EmptyFolder(WPARAM wParam,LPARAM lParam)
{
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index 2a6a4dfe67..0d9b365101 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -104,8 +104,6 @@ extern "C" __declspec(dllexport) int Load(void)
// Add cheking update menu item
CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand);
- CreateServiceFunction(MODNAME"/ShowList", ShowListCommand);
-
CLISTMENUITEM mi = { sizeof(mi) };
mi.position = 400010000;
mi.icolibItem = Skin_GetIconHandle("check_update");
@@ -113,11 +111,15 @@ extern "C" __declspec(dllexport) int Load(void)
mi.pszService = MODNAME"/CheckUpdates";
Menu_AddMainMenuItem(&mi);
- mi.position++;
- mi.icolibItem = Skin_GetIconHandle("plg_list");
- mi.pszName = LPGEN("Show full plugin list");
- mi.pszService = MODNAME"/ShowList";
- Menu_AddMainMenuItem(&mi);
+ #if MIRANDA_VER >= 0x0A00
+ CreateServiceFunction(MODNAME"/ShowList", ShowListCommand);
+
+ mi.position++;
+ mi.icolibItem = Skin_GetIconHandle("plg_list");
+ mi.pszName = LPGEN("Show full plugin list");
+ mi.pszService = MODNAME"/ShowList";
+ Menu_AddMainMenuItem(&mi);
+ #endif
// Add hotkey
HOTKEYDESC hkd = { sizeof(hkd) };