Ignore:
Timestamp:
Mar 26, 2024, 10:57:56 PM (7 weeks ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r73 r74  
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, LCLType,
    77  Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, Engine, Platform, Math,
    8   DateUtils, GraphType, UPersistentForm, UApplicationInfo, UTranslator,
    9   URegistry, UAboutDialog, FormNewGame, FormMap;
     8  DateUtils, GraphType, PersistentForm, ApplicationInfo, Translator,
     9  RegistryEx, FormAbout, FormNewGame, FormMap;
    1010
    1111type
     
    1515  TFormMain = class(TForm)
    1616    AAbout: TAction;
    17     AboutDialog1: TAboutDialog;
    1817    AShowRawImageDesc: TAction;
    1918    AShowMap: TAction;
     
    248247
    249248procedure TFormMain.AAboutExecute(Sender: TObject);
    250 begin
    251   AboutDialog1.Show;
     249var
     250  FormAbout: TFormAbout;
     251begin
     252  try
     253    FormAbout := TFormAbout.Create(nil);
     254    FormAbout.ApplicationInfo := Core.Core.ApplicationInfo;
     255    FormAbout.ShowModal;
     256  finally
     257    FreeAndNil(FormAbout);
     258  end;
    252259end;
    253260
Note: See TracChangeset for help on using the changeset viewer.