Do not show update notifications to users running from git sources

This commit is contained in:
Dylan K. Taylor 2021-09-07 23:51:58 +01:00
parent b8a15b647c
commit 7c943880b2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -151,7 +151,7 @@ class UpdateChecker{
return;
}
if($currentVersion->compare($newVersion) > 0 and ($currentVersion->getFullVersion() !== $newVersion->getFullVersion() or $currentVersion->getBuild() > 0)){
if($currentVersion->getBuild() > 0 && $currentVersion->compare($newVersion) > 0){
$this->updateInfo = $updateInfo;
}
}