Removed dcDownloadStart().

dcDownloadRequested():	return if download of dc has been requested.
dcDownloadResetRequested(): reset state of m_requested.
This commit is contained in:
Gerhard Hoffmann 2023-12-08 12:58:31 +01:00
parent 631550b55e
commit 1155b83ca9

View File

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