diff options
author | aunsane <aunsane@gmail.com> | 2018-02-19 00:00:03 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-02-19 00:00:20 +0300 |
commit | 46e398c0d295f3d33fe4c0450c36e1fc45a95616 (patch) | |
tree | 727617421cce4e6cc7f0863b4c4fcf367e135a10 /plugins/CloudFile/src/menus.cpp | |
parent | 66c4ae72a70a6e155c4a2a6d14c91c532cdb3974 (diff) |
CloudFile: added support for the usual accounts system(#1144)
Diffstat (limited to 'plugins/CloudFile/src/menus.cpp')
-rw-r--r-- | plugins/CloudFile/src/menus.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/CloudFile/src/menus.cpp b/plugins/CloudFile/src/menus.cpp index acfd469092..d405d68f8b 100644 --- a/plugins/CloudFile/src/menus.cpp +++ b/plugins/CloudFile/src/menus.cpp @@ -44,12 +44,11 @@ void InitializeMenus() for (size_t i = 0; i < count; i++) { CCloudService *service = Services[i]; - CMStringA serviceName = MODULE; - serviceName.AppendFormat("/%s/Upload", service->GetModule()); + CMStringA serviceName(FORMAT, "/%s/Upload", service->GetAccountName()); mi.pszService = serviceName.GetBuffer(); mi.flags = CMIF_SYSTEM | CMIF_UNICODE; - mi.name.w = (wchar_t*)service->GetText(); + mi.name.w = (wchar_t*)service->GetUserName(); mi.position = i; mi.hIcolibItem = GetIconHandle(Services[i]->GetIconId()); Menu_AddContactMenuItem(&mi); |