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

Function OnWriteJournal

src/menus/PluginMenus.cpp:235–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void 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

Callers

nothing calls this directly

Calls 3

RecordEnabledFunction · 0.85
SetRecordEnabledFunction · 0.85
AudacityMessageBoxFunction · 0.85

Tested by

no test coverage detected