diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-05-26 01:01:26 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-05-26 01:01:26 +0200 |
commit | e3e60b52b4e6ea35f60eb745cae2d2b1ad236874 (patch) | |
tree | a3c67c490127c47eb619482edf769cbb17c2df4e /plugingui | |
parent | 7202cbf9e1ffdc19c5fbe46017ce8d1c9f8e467a (diff) |
Connect the bleed control frame switch and add settings value for that.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/maintab.cc | 9 | ||||
-rw-r--r-- | plugingui/maintab.h | 1 |
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"}; |