Skip to content

Commit

Permalink
vc/slider: copy playback flash status (fix #1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed May 31, 2024
1 parent eea4be0 commit 351ee83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ui/src/virtualconsole/vcslider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ bool VCSlider::copyFrom(const VCWidget* widget)
/* Copy monitor mode */
setChannelsMonitorEnabled(slider->channelsMonitorEnabled());

/* Copy flash enabling */
setPlaybackFlashEnable(slider->playbackFlashEnable());

/* Copy common stuff */
return VCWidget::copyFrom(widget);
}
Expand Down Expand Up @@ -1034,7 +1037,7 @@ void VCSlider::notifyFunctionStarting(quint32 fid, qreal functionIntensity)
}
}

bool VCSlider::playbackFlashEnable()
bool VCSlider::playbackFlashEnable() const
{
return m_playbackFlashEnable;
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/virtualconsole/vcslider.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ protected slots:
virtual void notifyFunctionStarting(quint32 fid, qreal intensity);

/** Get/Set the status of the flash button enablement */
bool playbackFlashEnable();
bool playbackFlashEnable() const;
void setPlaybackFlashEnable(bool enable);

protected:
Expand Down

0 comments on commit 351ee83

Please sign in to comment.