Changeset 116 for trunk/Forms


Ignore:
Timestamp:
Aug 18, 2021, 5:50:18 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package files.
  • Fixed: Translation of About dialog.
  • Added: Snap package definition file.
  • Modified: Detect different data dir on Linux.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r115 r116  
    1414  OnDestroy = FormDestroy
    1515  OnShow = FormShow
    16   LCLVersion = '2.0.10.0'
     16  LCLVersion = '2.0.12.0'
    1717  WindowState = wsMaximized
    1818  object StatusBarMain: TStatusBar
  • trunk/Forms/UFormMain.pas

    r115 r116  
    171171  UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput,
    172172  UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog,
    173   UBFTarget;
     173  UBFTarget, UCommon;
    174174
    175175resourcestring
     
    613613  AProjectClose.Execute;
    614614  if Core.Project.Openned then Exit;
    615   Core.Project.FileName := 'Examples' + DirectorySeparator + SNewProject + '.b';
     615  Core.Project.FileName := CombinePaths(Core.DataDir, 'Examples' + DirectorySeparator + SNewProject + '.b');
    616616  FormSourceCode.SynEditSource.Clear;
    617617  Core.Project.Openned := True;
     
    631631  if Core.LastOpenedList.Items.Count > 0 then
    632632    OpenDialog1.FileName := Core.LastOpenedList.Items[0]
    633     else OpenDialog1.FileName := ExtractFileDir(Application.ExeName) + DirectorySeparator + 'Examples';
     633    else OpenDialog1.FileName := CombinePaths(Core.DataDir, 'Examples');
    634634  OpenDialog1.InitialDir := ExtractFileDir(OpenDialog1.FileName);
    635635  if OpenDialog1.Execute then begin
Note: See TracChangeset for help on using the changeset viewer.