diff options
author | aunsane <aunsane@gmail.com> | 2017-04-25 23:14:48 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-04-26 00:02:28 +0300 |
commit | f6575a156251f15ca2c1b9d8042aa45fb62bf42a (patch) | |
tree | e666979a4eeb36266dce7f3b66494490684dae07 /plugins/CloudFile/src/srmm.cpp | |
parent | 8331fa1e2a38cb64ac3c97e0e8bfdd11d2c08b85 (diff) |
CloudFile: ability to disable services
Diffstat (limited to 'plugins/CloudFile/src/srmm.cpp')
-rw-r--r-- | plugins/CloudFile/src/srmm.cpp | 7 |
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); } |