Ignore:
Timestamp:
Jul 12, 2016, 4:41:03 PM (8 years ago)
Author:
chronos
Message:
  • Added: New import source state called Enabled to allow to select only currently needed imports for importing from all sources.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r28 r29  
    259259begin
    260260  TotalItemCount := 0;
    261   for I := 0 to AcronymDb.ImportSources.Count - 1 do begin
    262     TImportSource(AcronymDb.ImportSources[I]).Process;
    263     TotalItemCount := TotalItemCount + TImportSource(AcronymDb.ImportSources[I]).ItemCount;
     261  for I := 0 to AcronymDb.ImportSources.Count - 1 do
     262  with TImportSource(AcronymDb.ImportSources[I]) do
     263  if Enabled then begin
     264    Process;
     265    TotalItemCount := TotalItemCount + ItemCount;
    264266  end;
    265267  ShowMessage(Format(SAddedCount, [TotalItemCount]));
Note: See TracChangeset for help on using the changeset viewer.