From 1155b83ca9a9d6912c603ba64c53072fa71933cd Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 8 Dec 2023 12:58:31 +0100 Subject: [PATCH] Removed dcDownloadStart(). dcDownloadRequested(): return if download of dc has been requested. dcDownloadResetRequested(): reset state of m_requested. --- src/hwapi.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index ae91e1c..62e9b67 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -4404,11 +4404,16 @@ bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) const { return true; } -void hwapi::dcDownloadStart() { +bool hwapi::dcDownloadRequested() const { + SharedMem const *data = SharedMem::getData(); + // should be false at entry + return data ? data->m_downLoadDC.m_requested.load() : false; +} + +bool hwapi::dcDownloadResetRequest() const { SharedMem *data = SharedMem::getData(); if (data) { data->m_downLoadDC.m_requested = false; - data->m_downLoadDC.m_running = true; } }