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

Method Commit

src/prefs/TracksPrefs.cpp:401–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401bool TracksPrefs::Commit()
402{
403 // Bug 1583: Clear the caching of the preference pinned state.
404 iPreferencePinned = -1;
405 ShuttleGui S(this, eIsSavingToPrefs);
406 PopulateOrExchange(S);
407
408 // Bug 1661: Don't store the name for new tracks if the name is the
409 // default in that language.
410 if (WaveTrack::GetDefaultAudioTrackNamePreference() ==
411 AudioTrackNameSetting.GetDefault()) {
412 AudioTrackNameSetting.Delete();
413 gPrefs->Flush();
414 }
415
416 AudioTrackNameSetting.Invalidate();
417 TracksFitVerticallyZoomed.Invalidate();
418 return true;
419}
420
421namespace{
422PrefsPanel::Registration sAttachment{ "Tracks",

Callers

nothing calls this directly

Calls 4

PopulateOrExchangeFunction · 0.50
DeleteMethod · 0.45
FlushMethod · 0.45
InvalidateMethod · 0.45

Tested by

no test coverage detected