Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix popout StartupLocation bug #3481

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robertlong13
Copy link
Collaborator

There is a bug where a user can be persistently stuck with a full-screen sized, or a zero sized, EKF status window (or Vibe or PreArm messages windows). We don't allow the user to resize these windows, so the only way to fix it is with config.xml hacking (or deleting).

We hide the minimize/maximize buttons on these windows, but they can still be minimized or maximized in multiple ways: keyboard shortcut, double-clicking the titlebar, or from the context menu on the title bar. If the user does this, and then closes the window before restoring it, the size gets saved and it cannot be fixed through the UI.

This PR fixes this by saving the location and size of the RestoreBounds of the form, instead of the literal size.

Additionally I made the EKF/Vibe/PreArm windows always open in normal state, regardless of the state they were in when they closed.

This did not play nice if the window was maximized or minimized when it
was saved.
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.
@rmackay9
Copy link
Contributor

It's great to see this! A company here in Japan hit this issue and I had to get them to delete their config to restore their MP to working order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants