summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/options.cpp')
-rw-r--r--plugins/CloudFile/src/options.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/CloudFile/src/options.cpp b/plugins/CloudFile/src/options.cpp
index ef643b0e50..1277aed11c 100644
--- a/plugins/CloudFile/src/options.cpp
+++ b/plugins/CloudFile/src/options.cpp
@@ -1,7 +1,7 @@
#include "stdafx.h"
COptionsMainDlg::COptionsMainDlg()
- : CPluginDlgBase(g_plugin, IDD_OPTIONS_MAIN, MODULE),
+ : CPluginDlgBase(g_plugin, IDD_OPTIONS_MAIN, MODULENAME),
m_defaultService(this, IDC_DEFAULTSERVICE),
m_doNothingOnConflict(this, IDC_DONOTHINGONCONFLICT),
m_renameOnConflict(this, IDC_RENAMEONCONFLICT),
@@ -21,7 +21,7 @@ void COptionsMainDlg::OnInitDialog()
{
CDlgBase::OnInitDialog();
- ptrA defaultService(db_get_sa(NULL, MODULE, "DefaultService"));
+ ptrA defaultService(db_get_sa(NULL, MODULENAME, "DefaultService"));
int iItem = m_defaultService.AddString(TranslateT("None"));
m_defaultService.SetCurSel(iItem);
@@ -31,7 +31,7 @@ void COptionsMainDlg::OnInitDialog()
m_defaultService.SetCurSel(iItem);
}
- BYTE strategy = db_get_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ BYTE strategy = db_get_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
switch (strategy)
{
case OnConflict::RENAME:
@@ -57,16 +57,16 @@ void COptionsMainDlg::OnApply()
int iItem = m_defaultService.GetCurSel();
CCloudService *service = (CCloudService*)m_defaultService.GetItemData(iItem);
if (service)
- db_set_s(NULL, MODULE, "DefaultService", service->GetAccountName());
+ db_set_s(NULL, MODULENAME, "DefaultService", service->GetAccountName());
else
- db_unset(NULL, MODULE, "DefaultService");
+ db_unset(NULL, MODULENAME, "DefaultService");
if (m_renameOnConflict.GetState())
- db_set_b(NULL, MODULE, "ConflictStrategy", OnConflict::RENAME);
+ db_set_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::RENAME);
else if (m_repalceOnConflict.GetState())
- db_set_b(NULL, MODULE, "ConflictStrategy", OnConflict::REPLACE);
+ db_set_b(NULL, MODULENAME, "ConflictStrategy", OnConflict::REPLACE);
else
- db_unset(NULL, MODULE, "ConflictStrategy");
+ db_unset(NULL, MODULENAME, "ConflictStrategy");
}
/////////////////////////////////////////////////////////////////////////////////
@@ -74,7 +74,7 @@ void COptionsMainDlg::OnApply()
int OnOptionsInitialized(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
- odp.szTitle.w = _A2W(MODULE);
+ odp.szTitle.w = _A2W(MODULENAME);
odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE | ODPF_DONTTRANSLATE;
odp.szGroup.w = LPGENW("Services");