Skip to content

Commit

Permalink
Correctly invoke the onSimAircraftChange (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Apr 5, 2024
1 parent 527e1bf commit f3d8f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private void ExecManager_OnSimAircraftChanged(object sender, string aircraftName
{
if (this.InvokeRequired)
{
this.Invoke(new UpdateAircraftCallback(UpdateAircraft), new object[] { aircraftName });
this.Invoke(new EventHandler<string>(ExecManager_OnSimAircraftChanged), new object[] { sender, aircraftName });
}
else
{
Expand Down

0 comments on commit f3d8f2a

Please sign in to comment.