logic: Moved update check setting to preferences and enable automatic update check by default

This commit is contained in:
Eberhard Graether
2017-10-11 13:39:00 +02:00
parent cf984ca245
commit 85ab7d1e96
12 changed files with 198 additions and 54 deletions
+8 -1
View File
@@ -8,7 +8,14 @@ class QtUpdateChecker
: public UpdateChecker
{
public:
static void check(bool force = false);
struct Result
{
bool success = false;
QString url;
};
static bool needsAutomaticCheck();
static void check(bool force, std::function<void(Result)> callback);
virtual void checkUpdate() override;