| 399 | } |
| 400 | |
| 401 | bool 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 | |
| 421 | namespace{ |
| 422 | PrefsPanel::Registration sAttachment{ "Tracks", |
nothing calls this directly
no test coverage detected