IDE/Options: Clear filter if needed when selecting a color in the preview editor

This commit is contained in:
n7800 2025-04-16 03:31:33 +05:00
parent eef50021f0
commit b1021fb32c

View File

@ -1760,6 +1760,8 @@ begin
if TColorSchemeAttribute(ColorElementTree.Items[i].Data).StoredName <> XmlName
then
continue;
if not ColorElementTree.Items[i].IsVisible then
ColorElementTreeFilter.Clear;
ColorElementTree.Items[i].Selected := True;
break;
end;