mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 07:54:49 +03:00
PassiveUpdateNotifier: Fix condition on when to show the update.
This commit is contained in:
parent
320cc1c7dd
commit
89b8555aa7
1 changed files with 4 additions and 3 deletions
|
@ -399,10 +399,11 @@ PassiveUpdateNotifier::PassiveUpdateNotifier(const QUrl &url, QObject *parent)
|
||||||
|
|
||||||
void PassiveUpdateNotifier::versionInfoArrived(const UpdateInfo &info)
|
void PassiveUpdateNotifier::versionInfoArrived(const UpdateInfo &info)
|
||||||
{
|
{
|
||||||
|
qint64 currentVer = Helper::currentVersionToInt();
|
||||||
|
qint64 remoteVer = Helper::stringVersionToInt(info.version());
|
||||||
|
|
||||||
if( info.version().isEmpty() ||
|
if( info.version().isEmpty() ||
|
||||||
Helper::stringVersionToInt(info.version())
|
currentVer >= remoteVer ) {
|
||||||
>= Helper::currentVersionToInt() )
|
|
||||||
{
|
|
||||||
qDebug() << "Client is on latest version!";
|
qDebug() << "Client is on latest version!";
|
||||||
setDownloadState(UpToDate);
|
setDownloadState(UpToDate);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue