1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 23:59:41 +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:57 -04:00
commit 9397ae2ff5
2 changed files with 5 additions and 3 deletions

View File

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

View File

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