mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +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.
|
// Not a menu.
|
||||||
return ( FinderScope{ findCommandHandler },
|
return (
|
||||||
Items( wxT("Misc"),
|
Items( wxT("Misc"),
|
||||||
// Delayed evaluation
|
// Delayed evaluation
|
||||||
[]( AudacityProject &project ) {
|
[]( AudacityProject &project ) {
|
||||||
return
|
return (
|
||||||
|
FinderScope{ findCommandHandler },
|
||||||
// Accel key is not bindable.
|
// Accel key is not bindable.
|
||||||
Command( wxT("FullScreenOnOff"), XXO("&Full Screen (on/off)"),
|
Command( wxT("FullScreenOnOff"), XXO("&Full Screen (on/off)"),
|
||||||
FN(OnFullScreen),
|
FN(OnFullScreen),
|
||||||
AlwaysEnabledFlag,
|
AlwaysEnabledFlag,
|
||||||
Options{ key }.CheckTest( []( const AudacityProject &project ) {
|
Options{ key }.CheckTest( []( const AudacityProject &project ) {
|
||||||
return GetProjectFrame( project )
|
return GetProjectFrame( project )
|
||||||
.wxTopLevelWindow::IsFullScreen(); } ) );
|
.wxTopLevelWindow::IsFullScreen(); } ) )
|
||||||
|
);
|
||||||
}
|
}
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user