summaryrefslogtreecommitdiff
path: root/plugingui/diskstreamingframecontent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/diskstreamingframecontent.cc')
-rw-r--r--plugingui/diskstreamingframecontent.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc
index 87e8b8b..33367de 100644
--- a/plugingui/diskstreamingframecontent.cc
+++ b/plugingui/diskstreamingframecontent.cc
@@ -59,6 +59,9 @@ DiskstreamingframeContent::DiskstreamingframeContent(Widget* parent,
CONNECT(&button, clickNotifier,
this, &DiskstreamingframeContent::reloadClicked);
+ CONNECT(this, settings_notifier.reload_counter,
+ this, &DiskstreamingframeContent::reloaded);
+
// TODO:
// CONNECT(this, settings_notifier.disk_cache_chunk_size,
// this, &DGWindow::chunkSettingsValueChanged);
@@ -118,9 +121,11 @@ void DiskstreamingframeContent::limitValueChanged(float value)
void DiskstreamingframeContent::reloadClicked()
{
settings.reload_counter++;
+}
+void DiskstreamingframeContent::reloaded(std::size_t)
+{
button.setEnabled(false);
}
-
} // GUI::