Changeset 77 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 27, 2016, 1:08:46 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Store recent files in registry subkey.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r75 r77  
    4949  UTargetInterpretter, UTargetFPC, UBFTarget, Forms, LazFileUtils;
    5050
     51const
     52  RecentFilesRegKey = 'RecentFiles';
    5153
    5254{ TCore }
     
    100102    Free;
    101103  end;
    102   LastOpenedList.LoadFromRegistry(RegContext(Root, Key));
     104  LastOpenedList.LoadFromRegistry(RegContext(Root, Key + '\' + RecentFilesRegKey));
    103105  Targets.LoadFromRegistry(Root, Key);
    104106  PersistentForm1.RegistryContext := RegContext(Root, Key + '\Forms');
     
    108110begin
    109111  Targets.SaveToRegistry(Root, Key);
    110   LastOpenedList.SaveToRegistry(RegContext(Root, Key));
     112  LastOpenedList.SaveToRegistry(RegContext(Root, Key + '\' + RecentFilesRegKey));
    111113  with TRegistryEx.Create do
    112114  try
Note: See TracChangeset for help on using the changeset viewer.