Example #1
0
BOOL CWizardFinishedPage::OnWizardFinish()
{
	UpdateData();

	Settings.Connection.AutoConnect = m_bAutoConnect != FALSE;

	if ( Settings.eDonkey.EnableToday )
	{
		if ( HostCache.eDonkey.GetCount() < 3 )
		{
			CDonkeyServersDlg dlg;
			dlg.DoModal();
		}
	}

	if ( m_bConnect && !Network.IsConnected() ) Network.Connect( TRUE );
	else if ( !m_bConnect && Network.IsConnected() ) Network.Disconnect();
	Settings.SetStartup( m_bStartup );

	return CWizardPage::OnWizardFinish();
}
void CHostCacheWnd::OnHostcacheEd2kDownload() 
{
	CDonkeyServersDlg dlg;
	if ( dlg.DoModal() == IDOK ) Update( TRUE );
}