Re: [Audacity-devel] [Audacity-cvs] audacity-src/src/widgets Meter.cpp, 1.59, 1.60
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Martyn S. <mar...@go...> - 2009-08-14 14:02:55
|
But why can we disable it, now that we have the meter option? Martyn 2009/8/14 André Pinto <and...@us...>: > Update of /cvsroot/audacity/audacity-src/src/widgets > In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17539 > > Modified Files: > Meter.cpp > Log Message: > AV: Greying out meter option when AV is disabled. Suggested by Gale. > > Index: Meter.cpp > =================================================================== > RCS file: /cvsroot/audacity/audacity-src/src/widgets/Meter.cpp,v > retrieving revision 1.59 > retrieving revision 1.60 > diff -u -d -r1.59 -r1.60 > --- Meter.cpp 10 Aug 2009 18:19:37 -0000 1.59 > +++ Meter.cpp 14 Aug 2009 13:40:18 -0000 1.60 > @@ -418,7 +418,10 @@ > menu->Append(OnAutomaticVolumeID, _("Stop Automatic Volume")); > else > menu->Append(OnAutomaticVolumeID, _("Start Automatic Volume")); > - if (!GetActiveProject()->GetControlToolBar()->IsRecordDown() == true) > + > + bool AVActive; > + gPrefs->Read(wxT("/AudioIO/AutomaticVolumeRecord"), &AVActive, false); > + if (!AVActive || !GetActiveProject()->GetControlToolBar()->IsRecordDown()) > menu->Enable(OnAutomaticVolumeID, false); > #endif > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Audacity-cvs mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-cvs > |