From ae33c82268fa5de29d7773844dc3bef876347cab Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 3 May 2026 18:13:25 +0500 Subject: [PATCH] fix(PrismExternalUpdater): show progress dialog immediately Signed-off-by: Octol1ttle --- launcher/updater/PrismExternalUpdater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/updater/PrismExternalUpdater.cpp b/launcher/updater/PrismExternalUpdater.cpp index b34da5915..79714cc35 100644 --- a/launcher/updater/PrismExternalUpdater.cpp +++ b/launcher/updater/PrismExternalUpdater.cpp @@ -96,6 +96,7 @@ void PrismExternalUpdater::checkForUpdates() void PrismExternalUpdater::checkForUpdates(bool triggeredByUser) const { QProgressDialog progress(tr("Checking for updates..."), "", 0, 0, priv->parent); + progress.setMinimumDuration(0); // Appear immediately without waiting progress.setCancelButton(nullptr); progress.adjustSize(); if (triggeredByUser) { @@ -164,7 +165,7 @@ void PrismExternalUpdater::checkForUpdates(bool triggeredByUser) const auto stdOutput = proc.readAllStandardOutput(); auto stdError = proc.readAllStandardError(); - progress.hide(); + progress.cancel(); QCoreApplication::processEvents(); switch (exitCode) {