mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Tweak menu screenshot code (show check/submenu options)
This commit is contained in:
parent
c4484a44ef
commit
96534c0114
@ -287,7 +287,13 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){
|
|||||||
Accel = "";
|
Accel = "";
|
||||||
if( item->IsSeparator() )
|
if( item->IsSeparator() )
|
||||||
Label = "----";
|
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()) {
|
if (item->IsSubMenu()) {
|
||||||
pMenu = item->GetSubMenu();
|
pMenu = item->GetSubMenu();
|
||||||
ExploreMenu( pMenu, item->GetId(), depth+1 );
|
ExploreMenu( pMenu, item->GetId(), depth+1 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user