Changeset 132 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jun 19, 2017, 10:06:50 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r128 r132 75 75 procedure AZoomInExecute(Sender: TObject); 76 76 procedure AZoomOutExecute(Sender: TObject); 77 procedure FormActivate(Sender: TObject);78 77 procedure FormShow(Sender: TObject); 79 78 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 242 241 end; 243 242 244 procedure TFormMain.FormActivate(Sender: TObject);245 begin246 if not Core.Initialized then begin247 Core.Init;248 end;249 end;250 251 243 procedure TFormMain.AZoomAllExecute(Sender: TObject); 252 244 var … … 313 305 begin 314 306 Core.Game.Running := False; 307 Core.PersistentForm.Save(Self); 315 308 SaveConfig(Core.XMLConfig1, 'FormMain'); 316 Core. PersistentForm.Save(Self);309 Core.XMLConfig1.Flush; 317 310 end; 318 311 … … 334 327 procedure TFormMain.FormShow(Sender: TObject); 335 328 begin 336 Core. XMLConfig1.Filename := 'Config.xml';329 Core.Init; 337 330 LoadConfig(Core.XMLConfig1, 'FormMain'); 338 Core.PersistentForm.Load(Self, True);331 Core.PersistentForm.Load(Self, wsMaximized); 339 332 ReloadView; 340 333 Redraw;
Note:
See TracChangeset
for help on using the changeset viewer.