From c0ff932b9b6ba685160204fee0af84930f7aa922 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 11 Apr 2025 13:40:09 +0300 Subject: =?UTF-8?q?fixes=20#4975=20(CloudFile:=20=D0=BD=D1=83=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=83=D0=B1=D0=B8=D1=80=D0=B0=D1=82=D1=8C=20=D1=83?= =?UTF-8?q?=D1=87=D1=91=D1=82=D0=BA=D1=83=20=D0=B8=D0=B7=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=B2=20=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=8E=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=B5=D1=91=20=D0=BE=D1=82=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B8)=20+=20some=20code=20clean?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/CloudFile/src/options.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/CloudFile/src/options.cpp') diff --git a/protocols/CloudFile/src/options.cpp b/protocols/CloudFile/src/options.cpp index f50168005e..5e0712e6ac 100644 --- a/protocols/CloudFile/src/options.cpp +++ b/protocols/CloudFile/src/options.cpp @@ -25,9 +25,9 @@ bool COptionsMainDlg::OnInitDialog() int iItem = m_defaultService.AddString(TranslateT("None")); m_defaultService.SetCurSel(iItem); - for (auto &service : Services) { - iItem = m_defaultService.AddString(mir_wstrdup(service->GetUserName()), (LPARAM)service); - if (!mir_strcmpi(service->GetAccountName(), defaultService)) + for (auto &service : g_arServices) { + iItem = m_defaultService.AddString(mir_wstrdup(service->m_tszUserName), (LPARAM)service); + if (!mir_strcmpi(service->m_szModuleName, defaultService)) m_defaultService.SetCurSel(iItem); } @@ -57,7 +57,7 @@ bool COptionsMainDlg::OnApply() { CCloudService *service = (CCloudService*)m_defaultService.GetCurData(); if (service) - g_plugin.setString("DefaultService", service->GetAccountName()); + g_plugin.setString("DefaultService", service->m_szModuleName); else g_plugin.delSetting("DefaultService"); @@ -77,7 +77,7 @@ int OnOptionsInitialized(WPARAM wParam, LPARAM) OPTIONSDIALOGPAGE odp = {}; odp.szTitle.w = _A2W(MODULENAME); odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE | ODPF_DONTTRANSLATE; - odp.szGroup.w = LPGENW("Services"); + odp.szGroup.w = LPGENW("g_arServices"); //odp.szTab.w = LPGENW("General"); odp.pDialog = new COptionsMainDlg(); -- cgit v1.2.3