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

Method UseMenu

src/widgets/FileHistory.cpp:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void FileHistory::UseMenu(wxMenu *menu)
100{
101 Compress();
102
103 auto end = mMenus.end();
104 auto iter = std::find(mMenus.begin(), end, menu);
105 auto found = (iter != end);
106
107 if (!found)
108 mMenus.push_back(menu);
109 else {
110 wxASSERT(false);
111 }
112
113 NotifyMenu( menu );
114}
115
116void FileHistory::Load(audacity::BasicSettings& settings, const wxString & group)
117{

Callers 2

InitPart2Method · 0.80
FileMenuFunction · 0.80

Calls 3

endMethod · 0.45
beginMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected