Skip to content

Put Stop and Quit on the window, not only in the tray - #409

Merged
davidmckayv merged 1 commit into
mainfrom
window-stop
Sep 6, 2026
Merged

Put Stop and Quit on the window, not only in the tray#409
davidmckayv merged 1 commit into
mainfrom
window-stop

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

Stop lived only in the tray, and the tray is absent in two measured cases: a bare Linux window manager has no StatusNotifierWatcher so the icon is never drawn, and on Windows the icon does not survive an Explorer restart because nothing re-adds it on TaskbarCreated.

Closing the window hides it, so either case leaves a running stack with nothing on screen that can stop it.

The same three items are now on the window menu, sharing one handler with the tray. Checked in the running app: the menu reports Open OpenBot, Stop OpenBot, Quit.

… to be there

Stop lived only in the tray icon, and the tray fails in two different ways, both
measured rather than assumed.

A bare Linux window manager has no StatusNotifierWatcher, which is what the icon
is published to, so no icon is ever drawn. On Windows the icon appears on a clean
boot and does not come back after Explorer restarts, because re-adding it on the
`TaskbarCreated` broadcast is the application's job and nothing does it.

Either way the same thing happens: closing the window hides it, the stack keeps
running, and the only control that could stop it is an icon that is not on
screen. Relaunching does hand the window back, but knowing that is not something
to require of somebody.

The three items are on the window's own menu now as well, sharing one function
with the tray so that Stop cannot come to mean two things depending on where it
was clicked. Verified in the running application rather than by reading the code:
the menu reports Open OpenBot, Stop OpenBot, Quit.
@davidmckayv
davidmckayv merged commit 7b94a0b into main Sep 6, 2026
18 checks passed
@davidmckayv
davidmckayv deleted the window-stop branch September 6, 2026 21:06
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