Qt: Center Installation Dialog

This commit is contained in:
¥IGA 2025-02-15 21:50:41 +01:00 committed by GitHub
parent b0169de7c4
commit 74591dd774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -965,6 +965,9 @@ void MainWindow::InstallDragDropPkg(std::filesystem::path file, int pkgNum, int
dialog.setAutoClose(true);
dialog.setRange(0, nfiles);
dialog.setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter,
dialog.size(), this->geometry()));
QFutureWatcher<void> futureWatcher;
connect(&futureWatcher, &QFutureWatcher<void>::finished, this, [=, this]() {
if (pkgNum == nPkg) {