diff options
Diffstat (limited to 'plugins/StopSpamPlus/src/options.cpp')
-rw-r--r-- | plugins/StopSpamPlus/src/options.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/StopSpamPlus/src/options.cpp b/plugins/StopSpamPlus/src/options.cpp index 342f446cbb..da64a57d50 100644 --- a/plugins/StopSpamPlus/src/options.cpp +++ b/plugins/StopSpamPlus/src/options.cpp @@ -4,13 +4,14 @@ const wchar_t pluginDescription[] = LPGENW("No more spam! Robots can't go! Only class COptMainDlg : public CPluginDlgBase
{
- CCtrlEdit edtCount;
+ CCtrlEdit edtCount, edtDescr;
CCtrlCheck chk1, chk2, chk3, chk4, chk5, chk6;
public:
COptMainDlg() :
CPluginDlgBase(hInst, IDD_MAIN, pluginName),
edtCount(this, ID_MAXQUESTCOUNT),
+ edtDescr(this, ID_DESCRIPTION),
chk1(this, ID_INFTALKPROT),
chk2(this, ID_ADDPERMANENT),
chk3(this, ID_HANDLEAUTHREQ),
@@ -27,6 +28,11 @@ public: CreateLink(chk5, g_sets.RemTmpAll);
CreateLink(chk6, g_sets.HistLog);
}
+
+ virtual void OnInitDialog() override
+ {
+ edtDescr.SetText(pluginDescription);
+ }
};
/////////////////////////////////////////////////////////////////////////////////////////
@@ -121,7 +127,7 @@ public: item.lParam = (LPARAM)p->szModuleName;
item.pszText = p->tszAccountName;
int idx = m_accounts.InsertItem(&item);
- m_accounts.SetCheckState(idx, !g_sets.ProtoDisabled(p->szModuleName));
+ m_accounts.SetCheckState(idx, g_sets.ProtoDisabled(p->szModuleName));
}
}
|