Tools/Icons_to_HTML: Speed-up display of icons in IconTable application. Patch by Roland Hahn.

This commit is contained in:
wp_xyz 2022-09-24 18:49:25 +02:00
parent 78caaf4fc2
commit c0fbe886a0
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ object MainForm: TMainForm
OnShow = FormShow
Position = poScreenCenter
ShowHint = True
LCLVersion = '2.3.0.0'
object DirectoryEdit: TDirectoryEdit
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = sbtnLastDirs

View File

@ -293,7 +293,7 @@ begin
LineStr := '';
for isl := StartIdx to i do
if IcoSizeList[isl] = PixSizeList[ips] then
LineStr := ' <td><img src="' + IcoFileList.Strings[isl] + '.png" alt=""></td>';
LineStr := ' <td><img src="' + IcoFileList.Strings[isl] + '.png" loading="lazy" alt=""></td>';
if LineStr > '' then
SynEdit.Lines.Add(LineStr)
else