Skip to content

Added automatic hiding the OrthoStream app to tray - #32

Merged
flysimdev merged 1 commit into
developfrom
minimize-to-tray
Nov 12, 2026
Merged

flysimdev merged 1 commit into
developfrom
minimize-to-tray

Conversation

@flysimdev

Copy link
Copy Markdown
Owner

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

  • Tray icon (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.
  • Hand-over to X-Plane (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.
  • Back when X-Plane quits (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.
  • UseWindowsForms is turned on, for NotifyIcon only (it ships in the same desktop runtime as WPF). Its implicit usings are removed so they don't clash with WPF.

Testing

  • New tests: TrayIconTests, XPlaneWatchTests. All 376 tests pass.
  • Tried by hand with X-Plane 12: start, hide to tray, quit, window comes back.

🤖 Generated with Claude Code

@flysimdev
flysimdev merged commit 3426735 into develop Nov 12, 2026
2 checks passed
@flysimdev
flysimdev deleted the minimize-to-tray branch November 12, 2026 13:42
@flysimdev
flysimdev restored the minimize-to-tray branch November 12, 2026 13:51
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.

1 participant