mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(PrismExternalUpdater): show progress dialog immediately
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
53dda7cd32
commit
ae33c82268
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue