Skip to content

Commit b9246aa

Browse files
Jojo-Schmitzvpereverzev
authored andcommitted
Fix #286153: Check box "Show MIDI controls in mixer" in Preferences/Score page has no effect
1 parent 5f8ea1c commit b9246aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mscore/mixer/mixer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ char userRangeToReverb(double v) { return (char)qBound(0, static_cast<int>(v / 1
7676

7777
Mixer::Mixer(QWidget* parent)
7878
: QDockWidget(qApp->translate("Mixer", "Mixer"), parent),
79-
showDetails(true),
79+
showDetails(preferences.getBool(PREF_IO_MIDI_SHOWCONTROLSINMIXER)),
8080
trackHolder(nullptr)
8181
{
8282

@@ -452,8 +452,9 @@ void Mixer::updateTracks()
452452
// midiPrefsChanged
453453
//---------------------------------------------------------
454454

455-
void Mixer::midiPrefsChanged(bool)
455+
void Mixer::midiPrefsChanged(bool showMidiControls)
456456
{
457+
showDetailsToggled(showMidiControls);
457458
updateTracks();
458459
}
459460

@@ -503,6 +504,7 @@ void MuseScore::showMixer(bool visible)
503504

504505
if (mixer == 0) {
505506
mixer = new Mixer(this);
507+
mixer->showDetailsToggled(preferences.getBool(PREF_IO_MIDI_SHOWCONTROLSINMIXER));
506508
mscore->stackUnder(mixer);
507509
if (synthControl)
508510
connect(synthControl, SIGNAL(soundFontChanged()), mixer, SLOT(updateTrack()));

0 commit comments

Comments
 (0)