Ignore:
Timestamp:
Jul 16, 2024, 10:58:45 PM (4 months ago)
Author:
chronos
Message:
  • Fixed: Keep full screen info on single place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r319 r327  
    9090    FormActivated: Boolean;
    9191    FormShown: Boolean;
    92     FullScreen: Boolean;
    9392    procedure ApplicationStart(Ptr: IntPtr);
    9493    procedure UpdateClientForms;
     
    9998    FormUnitMoves: TFormUnitMoves;
    10099    FormCharts: TFormCharts;
     100    FullScreen: Boolean;
    101101    procedure LoadConfig(Config: TXmlConfig; Path: string);
    102102    procedure SaveConfig(Config: TXmlConfig; Path: string);
    103103    procedure ReloadView;
     104    procedure ToggleFullscreen;
    104105  end;
    105106
     
    167168  end;
    168169  ToolBar1.Visible := AToolBarVisible.Checked;
     170end;
     171
     172procedure TFormMain.ToggleFullscreen;
     173begin
     174  FullScreen := not FullScreen;
     175  TFormEx.PersistentForm.Form := Self;
     176  TFormEx.PersistentForm.SetFullScreen(FullScreen);
    169177end;
    170178
     
    287295    AUnitShapeVisible.Checked := Core.Core.UnitShapeVisible;
    288296    Core.Core.ScaleDPI;
     297    Core.Core.PersistentForm1.Load(Self);
    289298    FullScreen := Core.Core.PersistentForm1.FormFullScreen;
    290299    Core.Core.Init;
Note: See TracChangeset for help on using the changeset viewer.