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
+7 -2
View File
@@ -107,7 +107,7 @@ class UpdateInterface : public QWidget
bool update(ProgressWidget * progress = nullptr);
signals:
void stop();
void stopping();
void finished();
protected:
@@ -156,6 +156,7 @@ class UpdateInterface : public QWidget
private slots:
void onStatusCancelled();
void processEvents();
private:
const ComponentIdentity m_id;
@@ -169,6 +170,8 @@ class UpdateInterface : public QWidget
QString m_updateDir;
bool m_stopping;
int m_result;
QEventLoop m_eventLoop;
QTimer m_timer;
void appSettingsInit();
bool checkCreateDirectory(const QString & dirSetting, const UpdateFlags flag);
@@ -177,7 +180,9 @@ class UpdateInterface : public QWidget
bool setRunFolders();
bool validateFolder(QString & fldr);
bool okToRun() { return m_result == PROC_RESULT_SUCCESS && m_stopping == false; }
bool isOkay() { return m_result == PROC_RESULT_SUCCESS && !m_stopping; }
const QString resultToString() const;
void runAsyncInstall();
void runBuild();
void runCopyToDestination();