From: Olivier Goffart Date: Tue, 4 Dec 2018 14:21:49 +0000 (+0100) Subject: Updater: show the human readable version in the settings X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~46^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9596eb7f207d84409df39cd4cfd438df6f64ddc2;p=nextcloud-desktop.git Updater: show the human readable version in the settings The xml looks like this: 2.5.0.328 ownCloud Client 2.5.0 alpha1 (build 238) And we should show the version string Issue #6602 --- diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index fa1ed9b66..40748c382 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -141,19 +141,19 @@ void OCUpdater::backgroundCheckForUpdate() QString OCUpdater::statusString() const { - QString updateVersion = _updateInfo.version(); + QString updateVersion = _updateInfo.versionString(); switch (downloadState()) { case Downloading: - return tr("Downloading version %1. Please wait …").arg(updateVersion); + return tr("Downloading %1. Please wait …").arg(updateVersion); case DownloadComplete: - return tr("%1 version %2 available. Restart application to start the update.").arg(Theme::instance()->appNameGUI(), updateVersion); + return tr("%1 available. Restart application to start the update.").arg(Theme::instance()->appNameGUI(), updateVersion); case DownloadFailed: return tr("Could not download update. Please click here to download the update manually.").arg(_updateInfo.web()); case DownloadTimedOut: return tr("Could not check for new updates."); case UpdateOnlyAvailableThroughSystem: - return tr("New %1 version %2 is available. Please click here to download the update.").arg(Theme::instance()->appNameGUI(), updateVersion, _updateInfo.web()); + return tr("New %1 is available. Please click here to download the update.").arg(updateVersion, _updateInfo.web()); case CheckingServer: return tr("Checking update server …"); case Unknown: