IDE: Rename "ShoLineNum" to "ShowLineNum" in project settings. Issue #40827.

(cherry picked from commit a7b6815a8c)
This commit is contained in:
Juha 2024-03-08 22:31:30 +02:00 committed by Maxim Ganetsky
parent 29df713d4b
commit ea2c8a0a28

View File

@ -1674,7 +1674,13 @@ begin
ShowWarn := aXMLConfig.GetValue(p+'Verbosity/ShowWarn/Value', true);
ShowNotes := aXMLConfig.GetValue(p+'Verbosity/ShowNotes/Value', true);
ShowHints := aXMLConfig.GetValue(p+'Verbosity/ShowHints/Value', true);
ShowLineNum := aXMLConfig.GetValue(p+'Verbosity/ShoLineNum/Value', false);
if aXMLConfig.HasPath(p+'Verbosity/ShoLineNum/Value', True) then begin
// Support an old typo. This can be deleted after Lazarus 4.0 release.
DebugLn(['TBaseCompilerOptions.LoadFromXMLConfig: Reading "',p+'Verbosity/ShoLineNum/Value"']);
ShowLineNum := aXMLConfig.GetValue(p+'Verbosity/ShoLineNum/Value', false)
end
else
ShowLineNum := aXMLConfig.GetValue(p+'Verbosity/ShowLineNum/Value', false);
ShowAll := aXMLConfig.GetValue(p+'Verbosity/ShowAll/Value', false);
ShowDebugInfo := aXMLConfig.GetValue(p+'Verbosity/ShowDebugInfo/Value', false);
ShowUsedFiles := aXMLConfig.GetValue(p+'Verbosity/ShowUsedFiles/Value', false);
@ -1866,7 +1872,7 @@ begin
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowWarn/Value', ShowWarn,true);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowNotes/Value', ShowNotes,true);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowHints/Value', ShowHints,true);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShoLineNum/Value', ShowLineNum,false);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowLineNum/Value', ShowLineNum,false);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowAll/Value', ShowAll,false);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowDebugInfo/Value', ShowDebugInfo,false);
aXMLConfig.SetDeleteValue(p+'Verbosity/ShowUsedFiles/Value', ShowUsedFiles,false);