UI: Add ability to lock volume

This commit is contained in:
Clayton Groeneveld
2020-02-16 18:33:46 -06:00
parent fd244a6896
commit b3601681b8
5 changed files with 44 additions and 0 deletions
+5
View File
@@ -276,6 +276,11 @@ VolControl::VolControl(OBSSource source_, bool showConfig, bool vertical)
VolumeChanged();
}
void VolControl::EnableSlider(bool enable)
{
slider->setEnabled(enable);
}
VolControl::~VolControl()
{
obs_fader_remove_callback(obs_fader, OBSVolumeChanged, this);