Skip to content

Commit

Permalink
initialize viny control state from ControlProxys
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB committed Jul 16, 2023
1 parent 6141e85 commit f6ae830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widget/wspinnybase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ void WSpinnyBase::setup(const QDomNode& node,

m_pVinylControlEnabled = new ControlProxy(
m_group, "vinylcontrol_enabled", this, ControlFlag::NoAssertIfMissing);
updateVinylControlEnabled(m_pVinylControlEnabled->get());
m_pVinylControlEnabled->connectValueChanged(this,
&WSpinnyBase::updateVinylControlEnabled);

m_pSignalEnabled = new ControlProxy(
m_group, "vinylcontrol_signal_enabled", this, ControlFlag::NoAssertIfMissing);
updateVinylControlSignalEnabled(m_pSignalEnabled->get());
m_pSignalEnabled->connectValueChanged(this,
&WSpinnyBase::updateVinylControlSignalEnabled);

Expand Down

0 comments on commit f6ae830

Please sign in to comment.