From 57c5323947808f0d71da342b9950d2632f7c851a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Mar 2018 19:28:15 +0300 Subject: fixes #1185 (Add icon to CloudFile accounts) --- plugins/CloudFile/src/Services/dropbox_service.cpp | 1 + plugins/CloudFile/src/Services/google_service.cpp | 4 +++- plugins/CloudFile/src/Services/microsoft_service.cpp | 1 + plugins/CloudFile/src/Services/yandex_service.cpp | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index 52cb094986..a18ba4f32c 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -4,6 +4,7 @@ CDropboxService::CDropboxService(const char *protoName, const wchar_t *userName) : CCloudService(protoName, userName) { + m_hProtoIcon = GetIconHandle(IDI_DROPBOX); } CDropboxService* CDropboxService::Init(const char *moduleName, const wchar_t *userName) diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp index 5298945e7a..dcf4e0725d 100644 --- a/plugins/CloudFile/src/Services/google_service.cpp +++ b/plugins/CloudFile/src/Services/google_service.cpp @@ -3,7 +3,9 @@ CGDriveService::CGDriveService(const char *protoName, const wchar_t *userName) : CCloudService(protoName, userName) -{} +{ + m_hProtoIcon = GetIconHandle(IDI_GDRIVE); +} CGDriveService* CGDriveService::Init(const char *moduleName, const wchar_t *userName) { diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp index 0a272a4e80..53b3a8574e 100644 --- a/plugins/CloudFile/src/Services/microsoft_service.cpp +++ b/plugins/CloudFile/src/Services/microsoft_service.cpp @@ -4,6 +4,7 @@ COneDriveService::COneDriveService(const char *protoName, const wchar_t *userName) : CCloudService(protoName, userName) { + m_hProtoIcon = GetIconHandle(IDI_ONEDRIVE); } COneDriveService* COneDriveService::Init(const char *moduleName, const wchar_t *userName) diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index b87cfaff5c..a40dd0d862 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -4,6 +4,7 @@ CYandexService::CYandexService(const char *protoName, const wchar_t *userName) : CCloudService(protoName, userName) { + m_hProtoIcon = GetIconHandle(IDI_YADISK); } CYandexService* CYandexService::Init(const char *moduleName, const wchar_t *userName) -- cgit v1.2.3