Skip to content

Commit

Permalink
Rename num_presetsavalable to num_chain_presets for a consistent nami…
Browse files Browse the repository at this point in the history
…ng with the other COs
  • Loading branch information
daschuer committed Oct 15, 2021
1 parent 1c8e4af commit 84b9c1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/effects/chains/quickeffectchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ QuickEffectChain::QuickEffectChain(const QString& group,
&EffectChainPresetManager::effectChainPresetListUpdated,
this,
&QuickEffectChain::slotPresetListUpdated);
m_pControlNumPresetsAvailable->forceSet(m_pChainPresetManager->numQuickEffectPresets());
m_pControlNumChainPresets->forceSet(m_pChainPresetManager->numQuickEffectPresets());
connect(m_pChainPresetManager.data(),
&EffectChainPresetManager::quickEffectChainPresetListUpdated,
this,
Expand Down
10 changes: 5 additions & 5 deletions src/effects/effectchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ EffectChain::EffectChain(const QString& group,
ConfigKey(m_group, "num_effectslots"));
m_pControlNumEffectSlots->setReadOnly();

m_pControlNumPresetsAvailable = std::make_unique<ControlObject>(
ConfigKey(m_group, "num_presetsavailable"));
m_pControlNumPresetsAvailable->set(m_pChainPresetManager->numPresets());
m_pControlNumPresetsAvailable->setReadOnly();
m_pControlNumChainPresets = std::make_unique<ControlObject>(
ConfigKey(m_group, "num_chain_presets"));
m_pControlNumChainPresets->set(m_pChainPresetManager->numPresets());
m_pControlNumChainPresets->setReadOnly();
connect(m_pChainPresetManager.data(),
&EffectChainPresetManager::effectChainPresetListUpdated,
this,
Expand Down Expand Up @@ -372,7 +372,7 @@ void EffectChain::slotChannelStatusChanged(

void EffectChain::slotPresetListUpdated() {
setControlLoadedPresetIndex(presetIndex());
m_pControlNumPresetsAvailable->forceSet(numPresets());
m_pControlNumChainPresets->forceSet(numPresets());
}

void EffectChain::enableForInputChannel(const ChannelHandleAndGroup& handleGroup) {
Expand Down
2 changes: 1 addition & 1 deletion src/effects/effectchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class EffectChain : public QObject {
EffectsMessengerPointer m_pMessenger;
std::unique_ptr<ControlObject> m_pControlChainMix;
std::unique_ptr<ControlObject> m_pControlChainSuperParameter;
std::unique_ptr<ControlObject> m_pControlNumPresetsAvailable;
std::unique_ptr<ControlObject> m_pControlNumChainPresets;
QList<EffectSlotPointer> m_effectSlots;

protected slots:
Expand Down

0 comments on commit 84b9c1f

Please sign in to comment.