瀏覽代碼

don't save auto start in windows if debug

ScottBrogden 8 年之前
父節點
當前提交
d6d51bbd13
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      OptionsGeneral.cpp

+ 6 - 0
OptionsGeneral.cpp

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