fix logging toggle

This commit is contained in:
Chris Danford
2006-01-24 07:30:01 +00:00
parent 1424fe42a1
commit 8c869c0e90
@@ -100,7 +100,7 @@ BOOL ChangeGameSettings::OnInitDialog()
bValue = false;
ini.GetValue( "Options", "ShowLogWindow", bValue );
ini.GetValue( "Options", "ShowLogOutput", bValue );
CheckDlgButton( IDC_CHECK_SHOW_LOG_WINDOW, bValue ? BST_CHECKED : BST_UNCHECKED );
@@ -137,7 +137,7 @@ void ChangeGameSettings::OnOK()
ini.SetValue( "Options", "LogToDisk", BST_CHECKED == IsDlgButtonChecked(IDC_CHECK_LOG_TO_DISK) );
ini.SetValue( "Options", "ShowLogWindow", BST_CHECKED == IsDlgButtonChecked(IDC_CHECK_SHOW_LOG_WINDOW) );
ini.SetValue( "Options", "ShowLogOutput", BST_CHECKED == IsDlgButtonChecked(IDC_CHECK_SHOW_LOG_WINDOW) );
if( !ini.WriteFile(SpecialFiles::PREFERENCES_INI_PATH) )