1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 00:20:06 +02:00

Make the Tracks tree node in Preference dialog expanded by default.

This commit is contained in:
Paul Licameli 2015-08-15 09:05:29 -04:00
parent f0fe2cb04c
commit 859b69262e
2 changed files with 5 additions and 3 deletions

View File

@ -158,7 +158,7 @@ PrefsDialog::Factories
&guiPrefsFactory, &guiPrefsFactory,
// Group two other pages // Group two other pages
PrefsNode(&tracksPrefsFactory, 2), PrefsNode(&tracksPrefsFactory, 2, true),
&waveformPrefsFactory, &waveformPrefsFactory,
&spectrumPrefsFactory, &spectrumPrefsFactory,

View File

@ -37,8 +37,10 @@ class PrefsDialog:public wxDialog
CONST int nChildren; CONST int nChildren;
bool expanded; bool expanded;
PrefsNode(PrefsPanelFactory *pFactory_, int nChildren_ = 0) PrefsNode(PrefsPanelFactory *pFactory_,
: pFactory(pFactory_), nChildren(nChildren_), expanded(false) int nChildren_ = 0,
bool expanded_ = false)
: pFactory(pFactory_), nChildren(nChildren_), expanded(expanded_)
{} {}
}; };
typedef std::vector<PrefsNode> Factories; typedef std::vector<PrefsNode> Factories;