1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-02 06:08:44 +01:00

Bug 2493 - No command for setting multi-view

Bug 2460 - Enh: Can't select "Multi-view" as default view mode in Tracks preferences

This fixes both.
This commit is contained in:
James Crook
2020-09-09 17:35:39 +01:00
parent a20f1cdf13
commit 7e573b9b2f
4 changed files with 39 additions and 15 deletions

View File

@@ -929,6 +929,12 @@ bool WaveTrackView::ToggleSubView(Display display)
// Be sure the sequence in which the other views appear is determinate.
void WaveTrackView::DoSetDisplay(Display display, bool exclusive)
{
if (display == WaveTrackViewConstants::Multiview) {
SetMultiView(true);
display = WaveTrackViewConstants::Waveform;
exclusive = false;
}
// Some generality here anticipating more than two views.
// The order of sub-views in the array is not specified, so make it definite
// by sorting by the view type constants.