Fix: displayLatest nur anzeigen wenn tatsächlich Update verfügbar (kein Stale-Cache-Anzeige)

main v1.1.394
boban 2026-04-27 02:30:46 +02:00
parent 20c9100226
commit 14901a40e3
2 changed files with 6 additions and 2 deletions

View File

@ -249,7 +249,9 @@ class UpdateCard extends Component
$this->displayCurrent = $curNorm ? 'v' . $curNorm : null; $this->displayCurrent = $curNorm ? 'v' . $curNorm : null;
if (!$this->displayLatest && $latNorm) { if (!$this->hasUpdate) {
$this->displayLatest = null;
} elseif (!$this->displayLatest && $latNorm) {
$this->displayLatest = 'v' . $latNorm; $this->displayLatest = 'v' . $latNorm;
} }
} }

View File

@ -194,7 +194,9 @@ class UpdatePage extends Component
$this->displayCurrent = $curNorm ? 'v' . $curNorm : null; $this->displayCurrent = $curNorm ? 'v' . $curNorm : null;
if (!$this->displayLatest && $latNorm) { if (!$this->hasUpdate) {
$this->displayLatest = null;
} elseif (!$this->displayLatest && $latNorm) {
$this->displayLatest = 'v' . $latNorm; $this->displayLatest = 'v' . $latNorm;
} }
} }