Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mscore/mixer/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ char userRangeToReverb(double v) { return (char)qBound(0, static_cast<int>(v / 1

Mixer::Mixer(QWidget* parent)
: QDockWidget(qApp->translate("Mixer", "Mixer"), parent),
showDetails(true),
showDetails(preferences.getBool(PREF_IO_MIDI_SHOWCONTROLSINMIXER)),
Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Dec 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow this doesn't seem to result in the prefecence being read and set when opening the Mixer for the 1st time?!?

trackHolder(nullptr)
{

Expand Down Expand Up @@ -452,8 +452,9 @@ void Mixer::updateTracks()
// midiPrefsChanged
//---------------------------------------------------------

void Mixer::midiPrefsChanged(bool)
void Mixer::midiPrefsChanged(bool showMidiControls)
{
showDetailsToggled(showMidiControls);
updateTracks();
}

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

if (mixer == 0) {
mixer = new Mixer(this);
mixer->showDetailsToggled(preferences.getBool(PREF_IO_MIDI_SHOWCONTROLSINMIXER));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what brings it to senses on the 1st open.

mscore->stackUnder(mixer);
if (synthControl)
connect(synthControl, SIGNAL(soundFontChanged()), mixer, SLOT(updateTrack()));
Expand Down