Ignore:
Timestamp:
Jul 26, 2016, 2:13:41 PM (8 years ago)
Author:
chronos
Message:
  • Added: Show how many new acronyms were imported.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r51 r56  
    110110    procedure LastOpenedList1Change(Sender: TObject);
    111111    procedure ListViewAcronymsData(Sender: TObject; Item: TListItem);
     112    procedure ListViewAcronymsResize(Sender: TObject);
    112113    procedure ListViewAcronymsSelectItem(Sender: TObject; Item: TListItem;
    113114      Selected: Boolean);
     
    140141
    141142resourcestring
    142   SAddedCount = 'Imported %d acronyms';
     143  SAddedCount = 'Imported %d acronyms. Added %d new.';
    143144  SProcessImportSources = 'Process import sources';
    144145
     
    277278begin
    278279  ImportTotalItemCount := 0;
     280  AcronymDb.AddedCount := 0;
    279281  JobProgressView1.AddJob(SProcessImportSources, ProcessImportsJob);
    280282  JobProgressView1.Start;
    281   ShowMessage(Format(SAddedCount, [ImportTotalItemCount]));
     283  ShowMessage(Format(SAddedCount, [ImportTotalItemCount, AcronymDb.AddedCount]));
    282284  UpdateAcronymsList;
    283285  UpdateInterface;
     
    393395    Item.SubItems.Add(Categories.GetString);
    394396  end;
     397end;
     398
     399procedure TFormMain.ListViewAcronymsResize(Sender: TObject);
     400begin
     401  ListViewFilter1.UpdateFromListView(ListViewAcronyms);
    395402end;
    396403
Note: See TracChangeset for help on using the changeset viewer.