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

Method SaveChanges

src/BatchProcessDialog.cpp:1334–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332}
1333
1334bool MacrosWindow::SaveChanges(){
1335 gPrefs->Write(wxT("/Batch/ActiveMacro"), mActiveMacro);
1336 gPrefs->Flush();
1337
1338 if (mChanged) {
1339 if (!mMacroCommands.WriteMacro(mActiveMacro)) {
1340 return false;
1341 }
1342 }
1343
1344 mChanged = false;
1345 if( mSave )
1346 mSave->Enable( mChanged );
1347
1348 return true;
1349}
1350
1351/// Send changed values back to Prefs, and update Audacity.
1352void MacrosWindow::OnOK(wxCommandEvent & WXUNUSED(event))

Callers

nothing calls this directly

Calls 4

WriteMacroMethod · 0.80
WriteMethod · 0.45
FlushMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected