Alternative Windows build fix, should fix the run too

This commit is contained in:
Paul Licameli 2020-02-02 09:08:07 -05:00
parent 79a4c519c0
commit 675f59b21f
1 changed files with 9 additions and 7 deletions

View File

@ -214,10 +214,16 @@ BaseItemSharedPtr ExtraDeviceMenu()
}
// Under /MenuBar/Optional/Extra/Part2
BaseItemPtr ExtraMiscItems()
BaseItemSharedPtr ExtraMiscItems()
{
using Options = CommandManager::Options;
// Not a menu.
static BaseItemSharedPtr items{
Items( wxT("Misc"),
// Delayed evaluation
[]( AudacityProject &project ) {
static const auto key =
#ifdef __WXMAC__
wxT("Ctrl+/")
@ -226,11 +232,6 @@ BaseItemPtr ExtraMiscItems()
#endif
;
// Not a menu.
return (
Items( wxT("Misc"),
// Delayed evaluation
[]( AudacityProject &project ) {
return (
FinderScope{ findCommandHandler },
// Accel key is not bindable.
@ -242,7 +243,8 @@ BaseItemPtr ExtraMiscItems()
.wxTopLevelWindow::IsFullScreen(); } ) )
);
}
) );
) };
return items;
}
AttachedItem sAttachment2{