MCPcopy Create free account
hub / github.com/GollyGang/ready / ClearAllPatterns

Method ClearAllPatterns

src/gui/frame.cpp:1847–1855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845// ---------------------------------------------------------------------
1846
1847void MyFrame::ClearAllPatterns()
1848{
1849 while (numpatterns > 0) {
1850 patternSubMenu->Delete( patternSubMenu->FindItemByPosition(0) );
1851 numpatterns--;
1852 }
1853 wxMenuBar* mbar = GetMenuBar();
1854 if (mbar) mbar->Enable(ID::OpenRecent, false);
1855}
1856
1857// ---------------------------------------------------------------------
1858

Callers

nothing calls this directly

Calls 1

EnableMethod · 0.80

Tested by

no test coverage detected