Ignore:
Timestamp:
Jan 14, 2025, 11:19:27 AM (10 days ago)
Author:
chronos
Message:
  • Fixed: Data directories detection on Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r175 r184  
    206206  SFileNotFound = 'File %s not found.';
    207207
    208 const
    209   ExamplesDir = 'Examples';
    210 
    211208{ TFormMain }
    212209
     
    217214  try
    218215    if Core.Core.LastOpenedList.Items.Count = 0 then
    219       Core.Core.LastOpenedList.Items.Add(CombinePaths(Core.Core.DataDir, ExamplesDir +
    220       DirectorySeparator + 'Sierpinski.b'));
     216      Core.Core.LastOpenedList.Items.Add(Core.Core.ExamplesDir +
     217        DirectorySeparator + 'Sierpinski.b');
    221218
    222219    if Core.Core.OpenProjectOnStart and (Core.Core.LastOpenedList.Items.Count > 0) and
     
    751748  AProjectClose.Execute;
    752749  if Core.Core.Project.Openned then Exit;
    753   Core.Core.Project.FileName := CombinePaths(Core.Core.DataDir, ExamplesDir + DirectorySeparator + SNewProject + '.b');
     750  Core.Core.Project.FileName := SNewProject + '.b';
     751  Core.Core.Project.Openned := True;
    754752  FormSourceCode.SynEditSource.Clear;
    755   Core.Core.Project.Openned := True;
    756753  Core.Core.CurrentTarget.Compiled := False;
    757754  UpdateInterface;
Note: See TracChangeset for help on using the changeset viewer.