mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for OSX native recent files menu.
This commit is contained in:
parent
a1ebc633b3
commit
802969a42e
2 changed files with 5 additions and 4 deletions
|
|
@ -90,9 +90,7 @@ public:
|
|||
mainWindowList.createWindowIfNoneAreOpen();
|
||||
|
||||
#if JUCE_MAC
|
||||
// NB: the native recent menus doesn't work at the moment - must reenable this when fixed
|
||||
//MenuBarModel::setMacMainMenu (menuModel, nullptr, "Open Recent");
|
||||
MenuBarModel::setMacMainMenu (menuModel, nullptr);
|
||||
MenuBarModel::setMacMainMenu (menuModel, nullptr, "Open Recent");
|
||||
#endif
|
||||
|
||||
struct ModuleFolderChecker : public CallbackMessage
|
||||
|
|
|
|||
|
|
@ -225,7 +225,10 @@ public:
|
|||
|
||||
if (recent->recentItem != nil)
|
||||
{
|
||||
[menuToAddTo addItem: [recent->recentItem copyWithZone: nil]];
|
||||
if (NSMenu* parent = [recent->recentItem menu])
|
||||
[parent removeItem: recent->recentItem];
|
||||
|
||||
[menuToAddTo addItem: recent->recentItem];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue