From 738ede0c39d07bfd94c12612c8413cc43f546fc8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 5 Nov 2023 20:35:42 +1000 Subject: [PATCH] Qt: Raise settings window if already open --- src/duckstation-qt/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 4920425ea..8d6de7f3e 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -2300,6 +2300,10 @@ void MainWindow::doSettings(const char* category /* = nullptr */) dlg->setModal(false); dlg->show(); } + else + { + dlg->raise(); + } if (category) dlg->setCategory(category); @@ -2322,6 +2326,10 @@ void MainWindow::doControllerSettings( dlg->setModal(false); dlg->show(); } + else + { + dlg->raise(); + } if (category != ControllerSettingsDialog::Category::Count) dlg->setCategory(category);