1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-08 08:30:02 +02:00

Add the multi-view menu item only if there are multiple sub-views...

... anticipating possible subtraction of all spectrogram code into an optional
plug-in in a later release
This commit is contained in:
Paul Licameli 2020-01-14 13:45:53 -05:00
parent ae1644627f
commit 98bd937389

View File

@ -730,7 +730,8 @@ BEGIN_POPUP_MENU(WaveTrackMenuTable)
POPUP_MENU_SEPARATOR()
POPUP_MENU_CHECK_ITEM(OnMultiViewID, XO("&Multi-view"), OnMultiView)
if ( WaveTrackSubViews::slots() > 1 )
POPUP_MENU_CHECK_ITEM(OnMultiViewID, XO("&Multi-view"), OnMultiView)
if ( view.GetMultiView() ) {
POPUP_MENU_CHECK_ITEM(OnWaveformID, XO("Wa&veform"), OnSetDisplay)