summaryrefslogtreecommitdiff
path: root/plugingui/maintab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r--plugingui/maintab.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc
index 3e5a816..571bf20 100644
--- a/plugingui/maintab.cc
+++ b/plugingui/maintab.cc
@@ -35,6 +35,7 @@ MainTab::MainTab(Widget* parent,
: Widget(parent)
, drumkitframe_content{this, settings, settings_notifier}
, humanizerframe_content{this, settings, settings_notifier}
+ , diskstreamingframe_content{this, settings, settings_notifier}
, settings(settings)
, settings_notifier(settings_notifier)
{
@@ -74,6 +75,12 @@ MainTab::MainTab(Widget* parent,
CONNECT(&humanizer_frame, onSwitchChangeNotifier,
this, &MainTab::humanizerOnChange);
+
+ CONNECT(this, settings_notifier.disk_cache_enable,
+ &diskstreaming_frame, &FrameWidget::setOnSwitch);
+
+ CONNECT(&diskstreaming_frame, onSwitchChangeNotifier,
+ this, &MainTab::diskStreamingOnChange);
}
void MainTab::humanizerOnChange(bool on)
@@ -81,4 +88,9 @@ void MainTab::humanizerOnChange(bool on)
settings.enable_velocity_modifier.store(on);
}
+void MainTab::diskStreamingOnChange(bool on)
+{
+ settings.disk_cache_enable.store(on);
+}
+
} // GUI::