mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-28 00:00:18 +01:00
Tweak menu screenshot code (show check/submenu options)
This commit is contained in:
@@ -287,7 +287,13 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){
|
||||
Accel = "";
|
||||
if( item->IsSeparator() )
|
||||
Label = "----";
|
||||
wxLogDebug("%2i,%s,%s", depth, Label,Accel );
|
||||
int flags = 0;
|
||||
if (item->IsSubMenu())
|
||||
flags +=1;
|
||||
if (item->IsCheck() )
|
||||
flags +=2;
|
||||
|
||||
wxLogDebug("T.Add( %2i, %2i, new wxString(\"%s<>%s\") );", depth, flags, Label,Accel );
|
||||
if (item->IsSubMenu()) {
|
||||
pMenu = item->GetSubMenu();
|
||||
ExploreMenu( pMenu, item->GetId(), depth+1 );
|
||||
|
||||
Reference in New Issue
Block a user