Files
craft-launcher/apps
Eric Kaden 39a200f25e macOS: the Dock icon brings the window back after closing it (#456) (#799)
* macOS: the Dock icon brings the window back after closing it (#456)

Closing the window to the menu bar ordered it out, and clicking the Dock
icon afterward brought nothing back: the Dock sends a "reopen" Apple
Event, which neither winit 0.30 nor eframe passes on, and handling it
directly needs unsafe code.

On macOS, closing to the tray now hides the app, as Cmd-H does. macOS
unhides a hidden app by itself, window and all, when its Dock icon is
clicked, it is opened again from Finder or Spotlight, or it is picked
with Cmd-Tab. "Show ArtCraft Launcher" unhides it before showing the
window. A start in the tray keeps ordering the window out, as the app
is still being activated then, which would unhide it.

* macOS: say why Shell.visible isn't resynced after the Dock unhides the app

A left click on the tray icon opens its menu on macOS, so the toggle that
reads this flag never arrives there.
2026-11-02 22:43:43 -05:00
..