fix(cpn): sounds processing extra files and cancel update processes earlier (#5354)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
Neil Horne
2024-08-01 22:59:22 +10:00
committed by GitHub
co-authored by elecpower
parent b2a603ed21
commit 4390e310d0
13 changed files with 443 additions and 210 deletions
+9 -1
View File
@@ -72,7 +72,10 @@ class UpdateNetwork : public QObject
static QString downloadDataTypeToString(const DownloadDataType val);
private slots:
void onDownloadFinished(QNetworkReply * reply, DownloadDataType ddt);
void onGetFinished(QNetworkReply * reply, DownloadDataType ddt);
void onPostFinished();
void updateProgress();
void cancelDownload();
private:
UpdateStatus *m_status;
@@ -83,6 +86,11 @@ class UpdateNetwork : public QObject
QFile *m_file;
QUrl m_url;
bool m_success;
QEventLoop m_eventLoop;
QTimer m_timer;
QString m_action;
bool init(const QString & url);
void connectReplyCommon();
void cleanup();
};