diff options
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r-- | plugingui/maintab.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc index 8bc4962..8b6e478 100644 --- a/plugingui/maintab.cc +++ b/plugingui/maintab.cc @@ -54,6 +54,7 @@ MainTab::MainTab(Widget* parent, add("Resampling", resampling_frame, resamplingframe_content, 14, 1); humanizer_frame.setOnSwitch(settings.enable_velocity_modifier); + bleedcontrol_frame.setOnSwitch(settings.enable_bleed_control); resampling_frame.setOnSwitch(settings.enable_resampling); CONNECT(this, settings_notifier.enable_velocity_modifier, @@ -62,7 +63,8 @@ MainTab::MainTab(Widget* parent, &resampling_frame, &FrameWidget::setOnSwitch); CONNECT(&humanizer_frame, onSwitchChangeNotifier, this, &MainTab::humanizerOnChange); - // TODO: Connect bleed control switch to settings + CONNECT(&bleedcontrol_frame, onSwitchChangeNotifier, + this, &MainTab::bleedcontrolOnChange); CONNECT(&resampling_frame, onSwitchChangeNotifier, this, &MainTab::resamplingOnChange); } @@ -82,6 +84,11 @@ void MainTab::humanizerOnChange(bool on) settings.enable_velocity_modifier.store(on); } +void MainTab::bleedcontrolOnChange(bool on) +{ + settings.enable_bleed_control.store(on); +} + void MainTab::resamplingOnChange(bool on) { settings.enable_resampling.store(on); |