fix(PrismExternalUpdater): show progress dialog immediately

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-05-03 18:13:25 +05:00
parent 53dda7cd32
commit ae33c82268
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -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) {