summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-05-26 01:01:26 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-05-26 01:01:26 +0200
commite3e60b52b4e6ea35f60eb745cae2d2b1ad236874 (patch)
treea3c67c490127c47eb619482edf769cbb17c2df4e /plugingui/maintab.cc
parent7202cbf9e1ffdc19c5fbe46017ce8d1c9f8e467a (diff)
Connect the bleed control frame switch and add settings value for that.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc9
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);