summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-08 01:18:02 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-06-08 01:19:19 +0200
commit8f3f22bb5d9d6879bb21d0132a3e0d0af4cd5380 (patch)
treeb3aab48cde087b07d0152b5b6945c3eea305a6ad /plugingui/maintab.cc
parentf532587d5c3576dc04d4c6eeee20c5dcdf642244 (diff)
Disable bleed control frame if drumkit doesn't support it.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc
index 84e8a92..170d937 100644
--- a/plugingui/maintab.cc
+++ b/plugingui/maintab.cc
@@ -61,10 +61,15 @@ MainTab::MainTab(Widget* parent,
resampling_frame.setOnSwitch(settings.enable_resampling);
timing_frame.setOnSwitch(settings.enable_latency_modifier);
+ // FIXME:
+ bleedcontrol_frame.setEnabled(false);
+
CONNECT(this, settings_notifier.enable_velocity_modifier,
&humanizer_frame, &FrameWidget::setOnSwitch);
CONNECT(this, settings_notifier.enable_resampling,
&resampling_frame, &FrameWidget::setOnSwitch);
+ CONNECT(this, settings_notifier.has_bleed_control,
+ &bleedcontrol_frame, &FrameWidget::setEnabled);
CONNECT(&humanizer_frame, onSwitchChangeNotifier,
this, &MainTab::humanizerOnChange);
CONNECT(&bleedcontrol_frame, onSwitchChangeNotifier,
@@ -73,6 +78,8 @@ MainTab::MainTab(Widget* parent,
this, &MainTab::resamplingOnChange);
CONNECT(&timing_frame, onSwitchChangeNotifier,
this, &MainTab::timingOnChange);
+ CONNECT(&bleedcontrol_frame, onEnabledChanged,
+ &bleedcontrolframe_content, &BleedcontrolframeContent::setEnabled);
}
void MainTab::resize(std::size_t width, std::size_t height)