Skip to content

Commit

Permalink
MAVLinkInterface: apply theme to progress form
Browse files Browse the repository at this point in the history
The theme would show correctly for the main connection button, but if
anything else, like ConnectionOptions, launched the connection, the
progress bar would show up unthemed.
  • Loading branch information
robertlong13 committed Dec 11, 2023
1 parent 7d2f63b commit 6e01592
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ public static void Start(string[] args)

// generic status report screen
MAVLinkInterface.CreateIProgressReporterDialogue += title =>
new ProgressReporterDialogue() {StartPosition = FormStartPosition.CenterScreen, Text = title};
{
var ret = new ProgressReporterDialogue() {StartPosition = FormStartPosition.CenterScreen, Text = title};
ThemeManager.ApplyThemeTo(ret);
return ret;
};

Console.WriteLine("Setup proxy");
try
Expand Down

0 comments on commit 6e01592

Please sign in to comment.