From f3d8f2a6b0d6fb4a2f852fe138b77d1f0d78c999 Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Sat, 6 Apr 2024 00:02:45 +0200 Subject: [PATCH] Correctly invoke the onSimAircraftChange (#1762) --- UI/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainForm.cs b/UI/MainForm.cs index 44383e11..243c6a18 100644 --- a/UI/MainForm.cs +++ b/UI/MainForm.cs @@ -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(ExecManager_OnSimAircraftChanged), new object[] { sender, aircraftName }); } else {