Address translation feedback from Transifex
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <QJsonObject>
|
||||
#include <QRegularExpression>
|
||||
|
||||
const QString UpdateChecker::ErrorVersion("error");
|
||||
UpdateChecker* UpdateChecker::m_instance(nullptr);
|
||||
|
||||
UpdateChecker::UpdateChecker(QObject* parent)
|
||||
@@ -104,7 +105,7 @@ void UpdateChecker::fetchFinished()
|
||||
// TODO: change to toSecsSinceEpoch() when min Qt >= 5.8
|
||||
config()->set(Config::GUI_CheckForUpdatesNextCheck, Clock::currentDateTime().addDays(7).toTime_t());
|
||||
} else {
|
||||
version = "error";
|
||||
version = ErrorVersion;
|
||||
}
|
||||
|
||||
emit updateCheckFinished(hasNewVersion, version, m_isManuallyRequested);
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
static bool compareVersions(const QString& localVersion, const QString& remoteVersion);
|
||||
static UpdateChecker* instance();
|
||||
|
||||
static const QString ErrorVersion;
|
||||
|
||||
signals:
|
||||
void updateCheckFinished(bool hasNewVersion, QString version, bool isManuallyRequested);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user