| 514 | } |
| 515 | |
| 516 | bool AppConfig::verifyRecordingPath() { |
| 517 | string recPathStr = wxGetApp().getConfig()->getRecordingPath(); |
| 518 | |
| 519 | if (recPathStr.empty()) { |
| 520 | wxMessageBox( wxT("Recording path is not set. Please use 'Set Recording Path' from the 'Recording' Menu."), wxT("Recording Path Error"), wxICON_INFORMATION); |
| 521 | |
| 522 | return false; |
| 523 | } |
| 524 | |
| 525 | wxFileName recPath(recPathStr); |
| 526 | |
| 527 | if (!recPath.Exists() || !recPath.IsDirWritable()) { |
| 528 | wxMessageBox( wxT("Recording path does not exist or is not writable. Please use 'Set Recording Path' from the 'Recording' Menu."), wxT("Recording Path Error"), wxICON_INFORMATION); |
| 529 | |
| 530 | return false; |
| 531 | } |
| 532 | |
| 533 | return true; |
| 534 | } |
| 535 | |
| 536 | |
| 537 | void AppConfig::setRecordingSquelchOption(int enumChoice) { |
no test coverage detected