fix: update if new size is larger

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-07-02 22:29:45 -07:00 committed by GitHub
parent 73d8343914
commit 8cb8273e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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