summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/menus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/menus.cpp')
-rw-r--r--plugins/CloudFile/src/menus.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/menus.cpp b/plugins/CloudFile/src/menus.cpp
index d9a6db9b3e..804facffd5 100644
--- a/plugins/CloudFile/src/menus.cpp
+++ b/plugins/CloudFile/src/menus.cpp
@@ -35,11 +35,15 @@ void InitializeMenus()
for (size_t i = 0; i < count; i++) {
CCloudService *service = Services[i];
+ if (!db_get_b(NULL, service->GetModule(), "IsEnable", TRUE))
+ continue;
+
CMStringA serviceName(CMStringDataFormat::FORMAT, "%s/%s/Upload", MODULE, service->GetModule());
+
mi.pszService = serviceName.GetBuffer();
mi.name.w = (wchar_t*)service->GetText();
mi.position = i;
- mi.hIcolibItem = Services[i]->GetIcon();
+ mi.hIcolibItem = GetIconHandle(Services[i]->GetIconId());
Menu_AddContactMenuItem(&mi);
CreateServiceFunctionObj(mi.pszService, UploadMenuCommand, service);
}