fix: should center window according to available geometry

This commit is contained in:
2025-01-04 13:36:01 +08:00
parent 6d7d0e4e1d
commit eb04ac362b

View File

@ -563,7 +563,7 @@ void MainWindow::centerWindow()
Qt::LeftToRight, Qt::LeftToRight,
Qt::AlignCenter, Qt::AlignCenter,
this->size(), this->size(),
qApp->screenAt(QCursor::pos())->geometry() qApp->screenAt(QCursor::pos())->availableGeometry()
) )
); );
} }