From f6575a156251f15ca2c1b9d8042aa45fb62bf42a Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 25 Apr 2017 23:14:48 +0300 Subject: CloudFile: ability to disable services --- plugins/CloudFile/src/cloud_service.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/CloudFile/src/cloud_service.cpp') 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(); -- cgit v1.2.3