Ignore:
Timestamp:
Jun 30, 2023, 11:34:35 PM (17 months ago)
Author:
chronos
Message:
  • Modified: Improved Core initialization.
  • Fixed: Not loaded last opened files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r164 r165  
    5656    ToolButton7: TToolButton;
    5757    ToolButton8: TToolButton;
     58    procedure FormActivate(Sender: TObject);
    5859    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    5960    procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
     
    99100end;
    100101
     102procedure TFormMain.FormActivate(Sender: TObject);
     103begin
     104  Core.Core.Initialize;
     105end;
     106
    101107procedure TFormMain.FormCloseQuery(Sender: TObject; var CanClose: boolean);
    102108begin
     
    110116  Core.Core.OnDataFileChange := DataFileChangeExecute;
    111117  Core.Core.OnLastOpenedListChange := LastOpenedFileChangeExecute;
     118  LastOpenedFileChangeExecute(Self);
    112119  LoadConfig;
    113120end;
     
    143150    FormContacts.Context := TRegistryContext.Create(Core.Core.ApplicationInfo1.RegistryRoot,
    144151      Core.Core.ApplicationInfo1.RegistryKey + '\ContactsColumns');
    145     FormContacts.Contacts := TVCardFile(Core.Core.DataFile).VCard.Contacts;
    146152    FormContacts.ManualDock(Self, nil, alClient);
    147153    FormContacts.Align := alClient;
Note: See TracChangeset for help on using the changeset viewer.