mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
The app-level NativeMenu is process-wide, so the withdrawal a window does on Closed has to name the items that window put there. Withdrawing "whatever is promoted right now" is correct only while one window exists at a time: with two, closing the older one takes the newer one's About / Check for Updates out of the macOS app menu, and nothing ever puts them back. Not reachable today - MainWindow is [Shared] and Attach runs from its ctor - but the failure mode is silent and permanent, and carrying the list costs nothing. Removing an item that is already gone is a no-op, so a superseded window's Closed stays harmless. The promotion tests also have to leave the app menu as they found it: it is declared on Application and outlives the test, it is not gated on macOS, and on Windows and Linux nothing re-promotes over the leftovers. Assisted-by: Claude:claude-opus-5:Claude Codepull/4012/head
2 changed files with 87 additions and 33 deletions
Loading…
Reference in new issue