| 364 | } |
| 365 | |
| 366 | bool TracksPrefs::GetPinnedHeadPreference() |
| 367 | { |
| 368 | // JKC: Cache this setting as it is read many times during drawing, and otherwise causes screen flicker. |
| 369 | // Correct solution would be to re-write wxFileConfig to be efficient. |
| 370 | if( iPreferencePinned >= 0 ) |
| 371 | return iPreferencePinned == 1; |
| 372 | bool bResult = gPrefs->ReadBool(PinnedHeadPreferenceKey(), PinnedHeadPreferenceDefault()); |
| 373 | iPreferencePinned = bResult ? 1: 0; |
| 374 | return bResult; |
| 375 | } |
| 376 | |
| 377 | void TracksPrefs::SetPinnedHeadPreference(bool value, bool flush) |
| 378 | { |
nothing calls this directly
no test coverage detected