| 233 | } |
| 234 | |
| 235 | void OnWriteJournal(const CommandContext &) |
| 236 | { |
| 237 | auto OnMessage = |
| 238 | /* i18n-hint a "journal" is a text file that records |
| 239 | the user's interactions with the application */ |
| 240 | XO("A journal will be recorded after Audacity restarts."); |
| 241 | auto OffMessage = |
| 242 | /* i18n-hint a "journal" is a text file that records |
| 243 | the user's interactions with the application */ |
| 244 | XO("No journal will be recorded after Audacity restarts."); |
| 245 | |
| 246 | using namespace Journal; |
| 247 | bool enabled = RecordEnabled(); |
| 248 | if ( SetRecordEnabled(!enabled) ) |
| 249 | enabled = !enabled; |
| 250 | if ( enabled ) |
| 251 | AudacityMessageBox( OnMessage ); |
| 252 | else |
| 253 | AudacityMessageBox( OffMessage ); |
| 254 | } |
| 255 | |
| 256 | } |
| 257 |
nothing calls this directly
no test coverage detected