Repository navigation
Added automatic hiding the OrthoStream app to tray - #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minimize to tray after starting X-Plane
After Start X-Plane / Start and fly, the OrthoStreamXP window stayed in front of X-Plane. X-Plane is started through Explorer, so Windows does not let it bring itself to the front.
What changed
Gui/TrayIcon.cs): once X-Plane has started, the window hides to the notification area. Click the icon to show it again. The menu has Open and Exit; Exit still asks before stopping a running mount.Setup/Installation/XPlaneWindow.cs): waits for X-Plane's window, gives it the front, and hides OrthoStreamXP only after X-Plane really has it. Hiding earlier sent the front to whatever window was behind. It never pulls the front away from a program the user picked.Gui/Home/XPlaneWatch.cs): the window comes back on the Home page, with Stop and the flight report in view. It briefly goes always-on-top so it shows above Explorer.UseWindowsFormsis turned on, forNotifyIcononly (it ships in the same desktop runtime as WPF). Its implicit usings are removed so they don't clash with WPF.Testing
TrayIconTests,XPlaneWatchTests. All 376 tests pass.🤖 Generated with Claude Code