Skip to content
Snippets Groups Projects
Commit 677ab528 authored by rswindell's avatar rswindell
Browse files

MainForm close event handler needs to save registry settings to save current

form sizes and positions.
parent da98e1d6
No related branches found
No related tags found
No related merge requests found
...@@ -773,10 +773,9 @@ void __fastcall TMainForm::FormClose(TObject *Sender, TCloseAction &Action) ...@@ -773,10 +773,9 @@ void __fastcall TMainForm::FormClose(TObject *Sender, TCloseAction &Action)
if(TrayIcon->Visible) /* minimized to tray? */ if(TrayIcon->Visible) /* minimized to tray? */
TrayIcon->Visible=false; /* restore to avoid crash */ TrayIcon->Visible=false; /* restore to avoid crash */
#if 0 /* This shouldn't be necessary any longer */ /* This is necessary to save form sizes/positions */
if(Initialized) /* Don't overwrite registry settings with defaults */ if(Initialized) /* Don't overwrite registry settings with defaults */
SaveSettings(Sender); SaveSettings(Sender);
#endif
StatusBar->Panels->Items[4]->Text="Closing..."; StatusBar->Panels->Items[4]->Text="Closing...";
time_t start=time(NULL); time_t start=time(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment