MCPcopy Create free account
hub / github.com/audacity/audacity / OnShowToolBar

Method OnShowToolBar

src/toolbars/ToolManager.cpp:1584–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582{}
1583
1584void AttachedToolBarMenuItem::OnShowToolBar( const CommandContext &context )
1585{
1586 auto &project = context.project;
1587 auto &toolManager = ToolManager::Get( project );
1588
1589 if( !toolManager.IsVisible( mId ) )
1590 {
1591 for ( const auto excludedID : mExcludeIds )
1592 toolManager.Expose( excludedID, false );
1593 }
1594
1595 toolManager.ShowHide(mId);
1596 ToolManager::Get(project).ModifyToolbarMenus(project);
1597}

Callers

nothing calls this directly

Calls 5

GetFunction · 0.85
ShowHideMethod · 0.80
ModifyToolbarMenusMethod · 0.80
IsVisibleMethod · 0.45
ExposeMethod · 0.45

Tested by

no test coverage detected