From 0d80c9ad5a69097f42453f4fc65105c421f34aa9 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 9 Apr 2015 15:13:33 +0000 Subject: SkypeWeb:SkypeWeb: Auto sync history part 3. git-svn-id: http://svn.miranda-ng.org/main/trunk@12699 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_options.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_options.cpp') diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp index 66446e1a38..ad7556ff97 100644 --- a/protocols/SkypeWeb/src/skype_options.cpp +++ b/protocols/SkypeWeb/src/skype_options.cpp @@ -4,7 +4,8 @@ CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog, HWND hwnd : CSkypeDlgBase(proto, idDialog, hwndParent, false), m_skypename(this, IDC_SKYPENAME), m_password(this, IDC_PASSWORD), - m_group(this, IDC_GROUP) + m_group(this, IDC_GROUP), + m_autosync(this, IDC_CHECK2) { //CreateLink(m_skypename, SKYPE_SETTINGS_ID, _T("")); //CreateLink(m_password, "Password", _T("")); @@ -17,6 +18,8 @@ void CSkypeOptionsMain::OnInitDialog() m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID))); m_password.SetTextA(ptrA(m_proto->getStringA("Password"))); + m_autosync.SetState(m_proto->getByte("AutoSync", 0)); + SendMessage(m_skypename.GetHwnd(), EM_LIMITTEXT, 32, 0); SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 20, 0); SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0); @@ -27,7 +30,7 @@ void CSkypeOptionsMain::OnApply() { m_proto->setString(SKYPE_SETTINGS_ID, m_skypename.GetTextA()); m_proto->setString("Password", m_password.GetTextA()); - + m_proto->setByte("AutoSync", m_autosync.GetState()); TCHAR *group = m_group.GetText(); if (mir_tstrlen(group) > 0 && !Clist_GroupExists(group)) Clist_CreateGroup(0, group); -- cgit v1.2.3