Skip to content

Commit

Permalink
FlightData: EKF/Vibe/PreArm popouts default normal
Browse files Browse the repository at this point in the history
A user can full-screen these by double-clicking the title bar, or using
a Windows keyboard shortcut, but we don't want to default to that state
even if the user did that before closing the window last time.
  • Loading branch information
robertlong13 committed Jan 21, 2025
1 parent b6cea01 commit 4d120b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GCSViews/FlightData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3227,6 +3227,7 @@ private void hud1_ekfclick(object sender, EventArgs e)
{
EKFStatus frm = new EKFStatus();
frm.RestoreStartupLocation();
frm.WindowState = FormWindowState.Normal;
frm.FormClosed += (a, e2) => frm.SaveStartupLocation();
frm.TopMost = true;
frm.Show();
Expand All @@ -3248,6 +3249,7 @@ private void hud1_vibeclick(object sender, EventArgs e)
{
Vibration frm = new Vibration();
frm.RestoreStartupLocation();
frm.WindowState = FormWindowState.Normal;
frm.FormClosed += (a, e2) => frm.SaveStartupLocation();
frm.TopMost = true;
frm.Show();
Expand All @@ -3257,6 +3259,7 @@ private void hud1_prearmclick(object sender, EventArgs e)
{
PrearmStatus frm = new PrearmStatus();
frm.RestoreStartupLocation();
frm.WindowState = FormWindowState.Normal;
frm.FormClosed += (a, e2) => frm.SaveStartupLocation();
frm.TopMost = true;
frm.Show();
Expand Down

0 comments on commit 4d120b1

Please sign in to comment.