Ignore:
Timestamp:
Feb 9, 2022, 5:07:14 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated speed of loading of big number of contacts.
  • Added: Contact field indexes cache for faster reverse search of contact fields by its index.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormProperties.pas

    r103 r104  
    369369  Text: string;
    370370  SelectedCount: Integer;
    371 begin
     371  Selected: Boolean;
     372begin
     373  Selected := Assigned(ListView1.Selected);
    372374  AAdd.Enabled := Assigned(Properties);
    373   AModify.Enabled := Assigned(Properties) and Assigned(ListView1.Selected);
    374   AClone.Enabled := Assigned(Properties) and Assigned(ListView1.Selected);;
    375   ARemove.Enabled := Assigned(Properties) and Assigned(ListView1.Selected);
    376   ALoadValueFromFile.Enabled := Assigned(Properties) and Assigned(ListView1.Selected);
    377   ASaveValueToFile.Enabled := Assigned(Properties) and Assigned(ListView1.Selected);
     375  AModify.Enabled := Assigned(Properties) and Selected;
     376  AClone.Enabled := Assigned(Properties) and Selected;
     377  ARemove.Enabled := Assigned(Properties) and Selected;
     378  ALoadValueFromFile.Enabled := Assigned(Properties) and Selected;
     379  ASaveValueToFile.Enabled := Assigned(Properties) and Selected;
    378380  ASelectAll.Enabled := ListView1.Items.Count > 0;
    379381
Note: See TracChangeset for help on using the changeset viewer.