Config: Port AutoUpdate settings to new config system.

This commit is contained in:
Admiral H. Curtiss
2021-12-27 19:09:47 +01:00
parent 8d237eb102
commit 96fa0919be
13 changed files with 44 additions and 52 deletions

View File

@ -3,6 +3,8 @@
#pragma once
#include <string>
#include <QThread>
#include "UICommon/AutoUpdate.h"
@ -15,7 +17,7 @@ class Updater : public QThread, public AutoUpdateChecker
{
Q_OBJECT
public:
explicit Updater(QWidget* parent);
explicit Updater(QWidget* parent, std::string update_track, std::string hash_override);
void run() override;
void OnUpdateAvailable(const NewVersionInformation& info) override;
@ -23,5 +25,7 @@ public:
private:
QWidget* m_parent;
std::string m_update_track;
std::string m_hash_override;
bool m_update_available = false;
};