diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-07-02 22:29:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 22:29:45 -0700 |
commit | 8cb8273e67d4770300fdb7c3ce61feb19b1a899b (patch) | |
tree | 5230a2c0a67deced0c96e9fc84615bcfda41542c | |
parent | 73d83439140377a7ece34e262ca4efab1608a03d (diff) | |
download | PrismLauncher-8cb8273e67d4770300fdb7c3ce61feb19b1a899b.tar.gz PrismLauncher-8cb8273e67d4770300fdb7c3ce61feb19b1a899b.tar.bz2 PrismLauncher-8cb8273e67d4770300fdb7c3ce61feb19b1a899b.zip |
fix: update if new size is larger
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r-- | launcher/ui/dialogs/ProgressDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/dialogs/ProgressDialog.cpp b/launcher/ui/dialogs/ProgressDialog.cpp index c6d8e573..f422d91e 100644 --- a/launcher/ui/dialogs/ProgressDialog.cpp +++ b/launcher/ui/dialogs/ProgressDialog.cpp @@ -113,7 +113,7 @@ void ProgressDialog::updateSize() QSize newSize = this->size(); // if the current window is too small - if ((lastSize != minSize) && (lastSize.height() < minSize.height())) + if ((lastSize != minSize) && (lastSize.height() < newSize.height())) { QSize sizeDiff = lastSize - newSize; // last size was smaller, the results should be negative // center on old position after resize |