| 1332 | } |
| 1333 | |
| 1334 | bool 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. |
| 1352 | void MacrosWindow::OnOK(wxCommandEvent & WXUNUSED(event)) |
nothing calls this directly
no test coverage detected