Changeset 18 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 6, 2017, 1:14:20 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Build with newer Lazarus version.
  • Fixed: Creation of application configuration file.
  • Fixed: Wrong decimal point used for XML datetime decode.
  • Added: Detect Subversion exe files from TortoiseSVN directory on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r15 r18  
    77uses
    88  Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, UVCS, UProject,
    9   ULastOpenedList, Forms, Dialogs, Contnrs, UBackend;
     9  ULastOpenedList, Forms, Dialogs, Menus, Contnrs, UBackend;
    1010
    1111type
     
    113113begin
    114114  Backends := TObjectList.Create;
     115  Project := nil;
    115116end;
    116117
     
    181182  XMLConfig1.SetValue('UserName', UserName);
    182183  XMLConfig1.SetValue('Email', Email);
     184  XmlConfig1.Flush;
    183185end;
    184186
     
    186188begin
    187189  RegisterBackends;
     190  XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml';
     191  ForceDirectoriesUTF8(ExtractFileDir(XMLConfig1.Filename));
    188192  LoadConfig;
    189193  if (LastOpenedListProject.Items.Count > 0) and DirectoryExistsUTF8(LastOpenedListProject.Items[0]) then
Note: See TracChangeset for help on using the changeset viewer.