Browse Source

don't save auto start in windows if debug

ScottBrogden 8 years ago
parent
commit
d6d51bbd13
1 changed files with 6 additions and 0 deletions
  1. 6 0
      OptionsGeneral.cpp

+ 6 - 0
OptionsGeneral.cpp

@@ -89,6 +89,8 @@ BOOL COptionsGeneral::OnInitDialog()
 	
 	
 	m_pParent = (COptionsSheet *)GetParent();
 	m_pParent = (COptionsSheet *)GetParent();
 
 
+#ifndef _DEBUG
+
 	if (CGetSetOptions::GetIsWindowsApp())
 	if (CGetSetOptions::GetIsWindowsApp())
 	{
 	{
 		m_btRunOnStartup.SetCheck(BST_CHECKED);
 		m_btRunOnStartup.SetCheck(BST_CHECKED);
@@ -98,6 +100,7 @@ BOOL COptionsGeneral::OnInitDialog()
 	{
 	{
 		m_btRunOnStartup.SetCheck(CGetSetOptions::GetRunOnStartUp());
 		m_btRunOnStartup.SetCheck(CGetSetOptions::GetRunOnStartUp());
 	}
 	}
+#endif
 
 
 	m_btMaximumCheck.SetCheck(CGetSetOptions::GetCheckForMaxEntries());
 	m_btMaximumCheck.SetCheck(CGetSetOptions::GetCheckForMaxEntries());
 	m_btExpire.SetCheck(CGetSetOptions::GetCheckForExpiredEntries());	
 	m_btExpire.SetCheck(CGetSetOptions::GetCheckForExpiredEntries());	
@@ -199,10 +202,13 @@ BOOL COptionsGeneral::OnApply()
 {
 {
 	UpdateData();
 	UpdateData();
 
 
+#ifndef _DEBUG
+
 	if (CGetSetOptions::GetIsWindowsApp() == FALSE)
 	if (CGetSetOptions::GetIsWindowsApp() == FALSE)
 	{
 	{
 		CGetSetOptions::SetRunOnStartUp(m_btRunOnStartup.GetCheck());
 		CGetSetOptions::SetRunOnStartUp(m_btRunOnStartup.GetCheck());
 	}
 	}
+#endif
 
 
 	CGetSetOptions::SetCheckForMaxEntries(m_btMaximumCheck.GetCheck());
 	CGetSetOptions::SetCheckForMaxEntries(m_btMaximumCheck.GetCheck());
 	CGetSetOptions::SetCheckForExpiredEntries(m_btExpire.GetCheck());
 	CGetSetOptions::SetCheckForExpiredEntries(m_btExpire.GetCheck());