@@ -43,10 +43,13 @@ private void OptionsForm_Load(object sender, EventArgs e)
4343 credSearchInAllOpenedDatabases . Checked = _config . SearchInAllOpenedDatabases ;
4444 matchSchemesCheckbox . Checked = _config . MatchSchemes ;
4545 returnStringFieldsCheckbox . Checked = _config . ReturnStringFields ;
46+ returnStringFieldsWithKphOnlyCheckBox . Checked = _config . ReturnStringFieldsWithKphOnly ;
4647 SortByUsernameRadioButton . Checked = _config . SortResultByUsername ;
4748 SortByTitleRadioButton . Checked = ! _config . SortResultByUsername ;
4849 portNumber . Value = _config . ListenerPort ;
4950 hostName . Text = _config . ListenerHost ;
51+
52+ this . returnStringFieldsCheckbox_CheckedChanged ( null , EventArgs . Empty ) ;
5053 }
5154
5255 private void okButton_Click ( object sender , EventArgs e )
@@ -59,6 +62,7 @@ private void okButton_Click(object sender, EventArgs e)
5962 _config . SearchInAllOpenedDatabases = credSearchInAllOpenedDatabases . Checked ;
6063 _config . MatchSchemes = matchSchemesCheckbox . Checked ;
6164 _config . ReturnStringFields = returnStringFieldsCheckbox . Checked ;
65+ _config . ReturnStringFieldsWithKphOnly = returnStringFieldsWithKphOnlyCheckBox . Checked ;
6266 _config . SortResultByUsername = SortByUsernameRadioButton . Checked ;
6367 _config . ListenerPort = ( int ) portNumber . Value ;
6468 _config . ListenerHost = hostName . Text ;
@@ -212,5 +216,10 @@ private void SetRestartRequired()
212216 {
213217 _restartRequired = ( _config . ListenerPort != portNumber . Value ) || ( _config . ListenerHost != hostName . Text ) ;
214218 }
219+
220+ private void returnStringFieldsCheckbox_CheckedChanged ( object sender , EventArgs e )
221+ {
222+ this . returnStringFieldsWithKphOnlyCheckBox . Enabled = this . returnStringFieldsCheckbox . Checked ;
223+ }
215224 }
216225}
0 commit comments