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; } }