Changeset 253 for trunk/Forms


Ignore:
Timestamp:
Sep 22, 2018, 11:11:38 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Version 1.3.0 related changes.
  • Fixed: Fullscreen mode under Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r250 r253  
    8383  private
    8484    FormActivated: Boolean;
     85    FormShown: Boolean;
    8586    procedure ApplicationStart(Ptr: IntPtr);
    8687    procedure UpdateClientForms;
     
    245246procedure TFormMain.FormShow(Sender: TObject);
    246247begin
    247   Core.LoadConfig;
    248   Core.ScaleDPI;
    249   Core.PersistentForm.Load(Self, True);
    250   Core.ThemeManager1.UseTheme(Self);
    251   Core.Init;
    252   LoadConfig(Core.XMLConfig1, 'FormMain');
    253   ReloadView;
    254   FormClient.Show;
    255   UpdateClientForms;
    256   Application.QueueAsyncCall(ApplicationStart, 0);
     248  if not FormShown then begin
     249    Core.LoadConfig;
     250    Core.ScaleDPI;
     251    Core.PersistentForm.Load(Self, True);
     252    Core.ThemeManager1.UseTheme(Self);
     253    Core.Init;
     254    LoadConfig(Core.XMLConfig1, 'FormMain');
     255    ReloadView;
     256    FormClient.Show;
     257    UpdateClientForms;
     258    Application.QueueAsyncCall(ApplicationStart, 0);
     259    FormShown := True;
     260  end;
    257261end;
    258262
Note: See TracChangeset for help on using the changeset viewer.