mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 18:48:59 +02:00
remove number of versions behind from the update dialog
This commit is contained in:
parent
8ff8d70f84
commit
3e09c911f5
1 changed files with 0 additions and 3 deletions
|
@ -23,11 +23,8 @@ UpdateDialog::UpdateDialog(QQuickItem* parent) :
|
|||
auto applicationUpdater = DependencyManager::get<AutoUpdater>();
|
||||
int currentVersion = QCoreApplication::applicationVersion().toInt();
|
||||
int latestVersion = applicationUpdater.data()->getBuildData().lastKey();
|
||||
int versionsBehind = latestVersion - currentVersion;
|
||||
_updateAvailableDetails = "v" + QString::number(latestVersion) + " released on "
|
||||
+ QString(applicationUpdater.data()->getBuildData()[latestVersion]["releaseTime"]).replace(" ", " ");
|
||||
_updateAvailableDetails += "\nYou are " + QString::number(versionsBehind) + " version"
|
||||
+ (versionsBehind > 1 ? "s" : "") + " behind";
|
||||
|
||||
_releaseNotes = "";
|
||||
for (int i = latestVersion; i > currentVersion; i--) {
|
||||
|
|
Loading…
Reference in a new issue