From 1f291a2d7991ebf76f9fcb9dc1ae8fcc59c3ddaf Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 3 May 2026 16:49:10 +0500 Subject: [PATCH] change(updater): ignore skipped versions when update check is triggered by user Signed-off-by: Octol1ttle --- launcher/updater/PrismExternalUpdater.cpp | 6 +++--- launcher/updater/PrismExternalUpdater.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/launcher/updater/PrismExternalUpdater.cpp b/launcher/updater/PrismExternalUpdater.cpp index a4e34e10a..879be9ca0 100644 --- a/launcher/updater/PrismExternalUpdater.cpp +++ b/launcher/updater/PrismExternalUpdater.cpp @@ -207,7 +207,7 @@ void PrismExternalUpdater::checkForUpdates(bool triggeredByUser) qDebug() << "Update available:" << version_name << version_tag << release_timestamp; qDebug() << "Update release notes:" << release_notes; - offerUpdate(version_name, version_tag, release_notes); + offerUpdate(version_name, version_tag, release_notes, triggeredByUser); } break; default: @@ -309,10 +309,10 @@ void PrismExternalUpdater::autoCheckTimerFired() checkForUpdates(false); } -void PrismExternalUpdater::offerUpdate(const QString& version_name, const QString& version_tag, const QString& release_notes) +void PrismExternalUpdater::offerUpdate(const QString& version_name, const QString& version_tag, const QString& release_notes, const bool ignoreSkipped) { priv->settings->beginGroup("skip"); - auto should_skip = priv->settings->value(version_tag, false).toBool(); + auto should_skip = !ignoreSkipped && priv->settings->value(version_tag, false).toBool(); priv->settings->endGroup(); if (should_skip) { diff --git a/launcher/updater/PrismExternalUpdater.h b/launcher/updater/PrismExternalUpdater.h index b88676028..236829137 100644 --- a/launcher/updater/PrismExternalUpdater.h +++ b/launcher/updater/PrismExternalUpdater.h @@ -83,7 +83,7 @@ class PrismExternalUpdater : public ExternalUpdater { void disconnectTimer(); void connectTimer(); - void offerUpdate(const QString& version_name, const QString& version_tag, const QString& release_notes); + void offerUpdate(const QString& version_name, const QString& version_tag, const QString& release_notes, bool ignoreSkipped); void performUpdate(const QString& version_tag); public slots: