1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Comment out an unused UpdatePrefs function

This commit is contained in:
Paul Licameli 2018-10-28 12:59:58 -04:00
parent b4fc4b9ceb
commit 0969d00b1b
2 changed files with 6 additions and 1 deletions

View File

@ -348,6 +348,10 @@ NoteTrack *MixerTrackCluster::GetNote() const
} }
#endif #endif
// Old approach modified things in situ.
// However with a theme change there is so much to modify, it is easier
// to recreate.
#if 0
void MixerTrackCluster::UpdatePrefs() void MixerTrackCluster::UpdatePrefs()
{ {
this->SetBackgroundColour( theTheme.Colour( clrMedium ) ); this->SetBackgroundColour( theTheme.Colour( clrMedium ) );
@ -356,6 +360,7 @@ void MixerTrackCluster::UpdatePrefs()
mMeter->UpdatePrefs(); // in case meter range has changed mMeter->UpdatePrefs(); // in case meter range has changed
HandleResize(); // in case prefs "/GUI/Solo" changed HandleResize(); // in case prefs "/GUI/Solo" changed
} }
#endif
void MixerTrackCluster::HandleResize() // For wxSizeEvents, update gain slider and meter. void MixerTrackCluster::HandleResize() // For wxSizeEvents, update gain slider and meter.
{ {

View File

@ -86,7 +86,7 @@ public:
NoteTrack *GetNote() const; NoteTrack *GetNote() const;
#endif #endif
void UpdatePrefs(); //void UpdatePrefs();
void HandleResize(); // For wxSizeEvents, update gain slider and meter. void HandleResize(); // For wxSizeEvents, update gain slider and meter.