ide: fixed duplicating ide coolbar, issue #41199

This commit is contained in:
mattias 2024-10-21 10:07:13 +02:00
parent 0aa1b762d3
commit ddff79db89

View File

@ -78,6 +78,7 @@ begin
ButtonCount := XMLConfig.GetValue(SubPath + 'Count', 0);
if (FileVersion < 1) and (ButtonCount = 0) then // Old format
ButtonCount := XMLConfig.GetValue(SubPath + 'ButtonCount/Value', 0);
ButtonNames.Clear;
for I := 1 to ButtonCount do
begin
ButtonName := XMLConfig.GetValue(SubPath + 'Button' + IntToStr(I) + '/Name', '');