Closed Bug 1518938 Opened 5 years ago Closed 5 years ago

Make it possible to hide items from the application menu

Categories

(Core :: Widget: Cocoa, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mossop, Assigned: mossop)

Details

Attachments

(1 file)

We're trying to create a modal dialog and block the user from doing anything else until it is closed. But the application menu still shows items for About and Preferences. It would be nice if we had a way to disable or hide these.

As far as I can tell by the time I get to this point the application menu has already been built from the hidden window and there doesn't seem to be a way to replace it with the menus from a new window, but I can still manipulate the menuitems in the hidden window.

So I've added a check when building the application menu to skip items which are collapsed (they are all already hidden).

Pushed by dtownsend@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50b3268954b1
Make it possible to hide items from the application menu. r=spohl
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: