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

Method OnEnable

src/effects/EffectUI.cpp:746–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746void EffectUIHost::OnEnable(wxCommandEvent & WXUNUSED(evt))
747{
748 mEnabled = mEnableBtn->IsDown();
749
750 auto mpState = mwState.lock();
751 if (mpState) {
752 mpState->SetActive(mEnabled);
753 UndoManager::Get(mProject).MarkUnsaved();
754 }
755
756 UpdateControls();
757}
758
759void EffectUIHost::OnPlay(wxCommandEvent & WXUNUSED(evt))
760{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
MarkUnsavedMethod · 0.80
lockMethod · 0.45
SetActiveMethod · 0.45

Tested by

no test coverage detected