mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 23:29:41 +02:00
Fix assertion in OnFullScreen command
This commit is contained in:
parent
7f4d61257a
commit
eb86a1eab7
@ -227,18 +227,20 @@ BaseItemPtr ExtraMiscItems()
|
||||
;
|
||||
|
||||
// Not a menu.
|
||||
return ( FinderScope{ findCommandHandler },
|
||||
return (
|
||||
Items( wxT("Misc"),
|
||||
// Delayed evaluation
|
||||
[]( AudacityProject &project ) {
|
||||
return
|
||||
return (
|
||||
FinderScope{ findCommandHandler },
|
||||
// Accel key is not bindable.
|
||||
Command( wxT("FullScreenOnOff"), XXO("&Full Screen (on/off)"),
|
||||
FN(OnFullScreen),
|
||||
AlwaysEnabledFlag,
|
||||
Options{ key }.CheckTest( []( const AudacityProject &project ) {
|
||||
return GetProjectFrame( project )
|
||||
.wxTopLevelWindow::IsFullScreen(); } ) );
|
||||
.wxTopLevelWindow::IsFullScreen(); } ) )
|
||||
);
|
||||
}
|
||||
) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user