Changeset 36 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 13, 2019, 5:14:50 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Missing UFormHistory files.
  • Added: Allow to disable moves history recording.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r33 r36  
    8888  FormSettings := TFormSettings.Create(nil);
    8989  try
    90     FormSettings.ShowModal;
     90    if FormSettings.ShowModal = mrOk then begin
     91      FormMain.UpdateInterface;
     92      UpdateInterface;
     93    end;
    9194  finally
    9295    FreeAndNil(FormSettings);
     
    153156      FormNew.Save(Core.Game);
    154157      Game.New;
     158      UpdateInterface;
     159      FormMain.UpdateInterface;
    155160    end;
    156161  finally
     
    184189begin
    185190  AUndo.Enabled := Game.CanUndo;
     191  AHistory.Enabled := Game.RecordHistory;
    186192  {$IFDEF DEBUG}
    187193  AComputer.Enabled := True;
Note: See TracChangeset for help on using the changeset viewer.