mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 07:43:50 +01:00
Bugs 1043, 1044 -- Be careful with new display modes in preferences
Write a new key so version 2.1.0 isn't confused by the reordered values Add some future proofing against similar to 2.1.1 code
This commit is contained in:
@@ -20,16 +20,24 @@
|
||||
#include "../Audacity.h"
|
||||
#include "TracksPrefs.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <wx/defs.h>
|
||||
|
||||
#include "../Experimental.h"
|
||||
#include "../Prefs.h"
|
||||
#include "../ShuttleGui.h"
|
||||
#include "../WaveTrack.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
TracksPrefs::TracksPrefs(wxWindow * parent)
|
||||
: PrefsPanel(parent, _("Tracks"))
|
||||
{
|
||||
// Bugs 1043, 1044
|
||||
// First rewrite legacy preferences
|
||||
gPrefs->Write(wxT("/GUI/DefaultViewModeNew"),
|
||||
WaveTrack::FindDefaultViewMode());
|
||||
|
||||
Populate();
|
||||
}
|
||||
|
||||
@@ -92,8 +100,9 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
S.StartMultiColumn(2);
|
||||
{
|
||||
|
||||
S.TieChoice(_("Default &View Mode:"),
|
||||
wxT("/GUI/DefaultViewMode"),
|
||||
wxT("/GUI/DefaultViewModeNew"),
|
||||
0,
|
||||
mViewChoices,
|
||||
mViewCodes);
|
||||
|
||||
Reference in New Issue
Block a user