Changeset 253 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 22, 2018, 11:11:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r250 r253 83 83 private 84 84 FormActivated: Boolean; 85 FormShown: Boolean; 85 86 procedure ApplicationStart(Ptr: IntPtr); 86 87 procedure UpdateClientForms; … … 245 246 procedure TFormMain.FormShow(Sender: TObject); 246 247 begin 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; 257 261 end; 258 262
Note:
See TracChangeset
for help on using the changeset viewer.