Reply 1420 of 2281, by skatz
- Rank
- Member
Hi, Alexander!
I found a new (or rather old) little problem:
When you show MiniRunForm from tray icon, you still may open tray popup menu (with minirun dialog visible). It may cause two effects:
a) you may open both main form and minirun simultaneously.
b) you may open two instants of minirun and get exception when closing them
Proposition: close minirun form on opening tray popup menu. If you will clear 'MininRunForm' variable in ShowMiniRunDialog function after freeing form, then following event in main form will do
procedure TDFendReloadedMainForm.TrayIconPopupMenuPopup(Sender: TObject);
begin
if MiniRunForm<>nil then
begin
MiniRunForm.Hide;
MiniRunForm.Close;
end;
end;