Added self-update
This commit is contained in:
@@ -69,7 +69,8 @@ public:
|
||||
UpdateAvailable,
|
||||
DownloadingUpdate,
|
||||
UpdateReady,
|
||||
CheckingForUpdate
|
||||
CheckingForUpdate,
|
||||
UpdateDone
|
||||
};
|
||||
Q_ENUM(UpdateStatus)
|
||||
Q_PROPERTY(UpdateStatus updateStatus READ updateStatus WRITE setUpdateStatus NOTIFY updateStatusChanged)
|
||||
@@ -97,6 +98,10 @@ public:
|
||||
|
||||
UpdateStatus updateStatus() const;
|
||||
|
||||
void completeUpdate(const QString &path);
|
||||
|
||||
void init();
|
||||
|
||||
private:
|
||||
static Control *m_instance;
|
||||
explicit Control(QObject *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user