1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-26 15:03:47 +01:00

Add a check item to Tracks menu for the scrolling beyond zero preference

This commit is contained in:
Paul Licameli
2016-05-10 12:47:34 -04:00
parent 9f8e34ad0f
commit 4394ad1b70
6 changed files with 39 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ Paul Licameli
#include "prefs/GUISettings.h"
#include "Prefs.h"
#include "xml/XMLWriter.h"
#include "prefs/TracksPrefs.h"
namespace {
static const double gMaxZoom = 6000000;
@@ -133,7 +134,8 @@ void ViewInfo::UpdatePrefs()
{
ZoomInfo::UpdatePrefs();
#ifdef EXPERIMENTAL_SCROLLING_LIMITS
gPrefs->Read(wxT("/GUI/ScrollBeyondZero"), &bScrollBeyondZero, false);
gPrefs->Read(TracksPrefs::ScrollingPreferenceKey(), &bScrollBeyondZero,
TracksPrefs::ScrollingPreferenceDefault());
#endif
}