From 2fc87d46e2f81d941a45375bf03f7fbd0c09097b Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 5 Oct 2023 18:10:21 +0200 Subject: [PATCH] make decks' xfader assignment persistent --- src/engine/channels/enginechannel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/channels/enginechannel.cpp b/src/engine/channels/enginechannel.cpp index 5602f04a9c4..75ffcbb24c2 100644 --- a/src/engine/channels/enginechannel.cpp +++ b/src/engine/channels/enginechannel.cpp @@ -23,10 +23,11 @@ EngineChannel::EngineChannel(const ChannelHandleAndGroup& handleGroup, m_pMainMix = new ControlPushButton(ConfigKey(getGroup(), "main_mix")); m_pMainMix->setButtonMode(ControlPushButton::POWERWINDOW); m_pMainMix->addAlias(ConfigKey(getGroup(), QStringLiteral("master"))); - m_pOrientation = new ControlPushButton(ConfigKey(getGroup(), "orientation")); + // crossfader assignment is persistent + m_pOrientation = new ControlPushButton( + ConfigKey(getGroup(), "orientation"), true, defaultOrientation); m_pOrientation->setButtonMode(ControlPushButton::TOGGLE); m_pOrientation->setStates(3); - m_pOrientation->set(defaultOrientation); m_pOrientationLeft = new ControlPushButton(ConfigKey(getGroup(), "orientation_left")); connect(m_pOrientationLeft, &ControlObject::valueChanged, this, &EngineChannel::slotOrientationLeft, Qt::DirectConnection);