summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/srmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/srmm.cpp')
-rw-r--r--plugins/CloudFile/src/srmm.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/srmm.cpp b/plugins/CloudFile/src/srmm.cpp
index e903d90721..d1b55c0ec0 100644
--- a/plugins/CloudFile/src/srmm.cpp
+++ b/plugins/CloudFile/src/srmm.cpp
@@ -32,7 +32,7 @@ int OnSrmmWindowOpened(WPARAM, LPARAM lParam)
if (!isProtoOnline || (status == ID_STATUS_OFFLINE && !canSendOffline))
bbd.bbbFlags = BBSF_DISABLED;
- //Srmm_SetButtonState(ev->hContact, &bbd);
+ Srmm_SetButtonState(ev->hContact, &bbd);
}
return 0;
@@ -54,8 +54,11 @@ int OnSrmmButtonPressed(WPARAM, LPARAM lParam)
for (size_t i = 0; i < count; i++) {
CCloudService *service = Services[i];
+ if (!db_get_b(NULL, service->GetModule(), "IsEnable", TRUE))
+ continue;
+
InsertMenu(hMenu, i, MF_STRING, i + 1, service->GetText());
- //HBITMAP hBitmap = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(IDI_UPLOAD), IMAGE_ICON, 16, 16, 0);
+ //HBITMAP hBitmap = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(service->GetIconId()), IMAGE_ICON, 16, 16, 0);
//SetMenuItemBitmaps(hMenu, i, MF_BITMAP, hBitmap, hBitmap);
}