diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index 7eca2e10f..949d7062e 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -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 futureWatcher; connect(&futureWatcher, &QFutureWatcher::finished, this, [=, this]() { if (pkgNum == nPkg) {