summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/maintab.cc9
-rw-r--r--plugingui/maintab.h1
2 files changed, 9 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);
diff --git a/plugingui/maintab.h b/plugingui/maintab.h
index de78474..ce1e5b4 100644
--- a/plugingui/maintab.h
+++ b/plugingui/maintab.h
@@ -57,6 +57,7 @@ public:
private:
void humanizerOnChange(bool on);
+ void bleedcontrolOnChange(bool on);
void resamplingOnChange(bool on);
Image logo{":resources/logo.png"};