Skip to content

Commit

Permalink
always bring focus to unique instance
Browse files Browse the repository at this point in the history
  • Loading branch information
FRex committed Dec 17, 2019
1 parent b819dcb commit bddc3e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mainunit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,10 @@ procedure TForm1.UniqueInstance1OtherInstance(Sender: TObject;
begin

if ParamCount > 0 then
begin
OpenShortcutFile(Parameters[0]);
Application.Restore;
Application.BringToFront;
end;

Application.Restore;
Application.BringToFront;
end;

procedure TForm1.OpenShortcutFile(const fname: string);
Expand Down

0 comments on commit bddc3e3

Please sign in to comment.