summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/cloud_service.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-04-25 23:14:48 +0300
committeraunsane <aunsane@gmail.com>2017-04-26 00:02:28 +0300
commitf6575a156251f15ca2c1b9d8042aa45fb62bf42a (patch)
treee666979a4eeb36266dce7f3b66494490684dae07 /plugins/CloudFile/src/cloud_service.cpp
parent8331fa1e2a38cb64ac3c97e0e8bfdd11d2c08b85 (diff)
CloudFile: ability to disable services
Diffstat (limited to 'plugins/CloudFile/src/cloud_service.cpp')
-rw-r--r--plugins/CloudFile/src/cloud_service.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/cloud_service.cpp b/plugins/CloudFile/src/cloud_service.cpp
index ee2bebe4d4..3f35bc1d4b 100644
--- a/plugins/CloudFile/src/cloud_service.cpp
+++ b/plugins/CloudFile/src/cloud_service.cpp
@@ -20,6 +20,9 @@ void InitServices()
for (size_t i = 0; i < count; i++) {
CCloudService *service = Services[i];
+ if (!db_get_b(NULL, service->GetModule(), "IsEnable", TRUE))
+ continue;
+
CMStringA moduleName(CMStringDataFormat::FORMAT, "%s/%s", MODULE, service->GetModule());
pd.type = PROTOTYPE_VIRTUAL;
pd.szName = moduleName.GetBuffer();