Skip to content

Commit

Permalink
SQL export dialog: cut long file list down to 20 latest items
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Feb 4, 2024
1 parent 17f4cb2 commit b8d5876
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/tabletools.pas
Expand Up @@ -1345,8 +1345,13 @@ procedure TfrmTableTools.comboExportOutputTypeChange(Sender: TObject);
comboExportOutputTarget.Items.Text := AppSettings.ReadString(asExportSQLFilenames, '')
else
comboExportOutputTarget.Items.Text := AppSettings.ReadString(asExportZIPFilenames, '');
if comboExportOutputTarget.Items.Count > 0 then
if comboExportOutputTarget.Items.Count > 0 then begin
comboExportOutputTarget.ItemIndex := 0;
// Cut long file list down to 20 latest items
for i:=comboExportOutputTarget.Items.Count-1 downto 20 do begin
comboExportOutputTarget.Items.Delete(i);
end;
end;
lblExportOutputTarget.Caption := _('Filename')+':';
btnExportOutputTargetSelect.Enabled := True;
btnExportOutputTargetSelect.ImageIndex := 51;
Expand Down

0 comments on commit b8d5876

Please sign in to comment.