From 90c01f8d922d4cccd41f817940b45c3603a5f332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A5IGA?= <164882787+Xphalnos@users.noreply.github.com> Date: Mon, 17 Feb 2025 11:37:11 +0100 Subject: [PATCH] Qt: Center Installation Dialog (#2453) --- src/qt_gui/main_window.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) {