diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-10 14:21:06 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-10 14:21:06 +0300 |
commit | 2bcf1baac1eeac822c8f89210fe0300ab6371229 (patch) | |
tree | cb686b2befd6f607976df4db3e4387fd475b5fb6 /protocols/YAMN/src/proto/pop3 | |
parent | a0e7d1f91b0c85f5fdc13bc5cc505018e63d465d (diff) |
fixes #3722 (YAMN: настройки всплывающих окон)
Diffstat (limited to 'protocols/YAMN/src/proto/pop3')
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3opt.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/protocols/YAMN/src/proto/pop3/pop3opt.cpp b/protocols/YAMN/src/proto/pop3/pop3opt.cpp index 2828fb232e..71b6b0642d 100644 --- a/protocols/YAMN/src/proto/pop3/pop3opt.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3opt.cpp @@ -817,11 +817,9 @@ public: chkCol.OnChange = chkFcol.OnChange = chkNcol.OnChange = Callback(this, &CPopupOptsDlg::onChange_Col);
cmbCP.OnSelChanged = Callback(this, &CPopupOptsDlg::onSelChange_CP);
+ cmbAccount.OnSelChanged = Callback(this, &CPopupOptsDlg::onSelChange_Account);
btnPreview.OnClick = Callback(this, &CPopupOptsDlg::onClick_Preview);
-
- cmbAccount.OnKillFocus = Callback(this, &CPopupOptsDlg::onKillFocus_Account);
- cmbAccount.OnSelChanged = Callback(this, &CPopupOptsDlg::onSelChange_Account);
}
bool OnInitDialog() override
@@ -839,6 +837,7 @@ public: }
ActualAccount = nullptr;
cmbAccount.SetCurSel(0);
+ onSelChange_Account(0);
return true;
}
@@ -847,23 +846,6 @@ public: WindowList_Remove(YAMNVar.MessageWnds, m_hwnd);
}
- void onKillFocus_Account(CCtrlCombo *)
- {
- GetDlgItemTextA(m_hwnd, IDC_COMBOACCOUNT, DlgInput, _countof(DlgInput));
- if (nullptr == (ActualAccount = (CPOP3Account*)FindAccountByName(POP3Plugin, DlgInput))) {
- DlgSetItemText(m_hwnd, (WPARAM)IDC_STTIMELEFT, nullptr);
- if (mir_strlen(DlgInput))
- DlgEnableAccountPopup(true);
- else
- DlgEnableAccountPopup(false);
- }
- else {
- DlgShowAccount(ActualAccount);
- DlgShowAccountColors();
- DlgEnableAccountPopup(true);
- }
- }
-
void onSelChange_Account(CCtrlCombo *)
{
int Result = cmbAccount.GetCurSel();
|