Skip to content

Commit 738ede0

Browse files
committed
Qt: Raise settings window if already open
1 parent ea51d2a commit 738ede0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/duckstation-qt/mainwindow.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,10 @@ void MainWindow::doSettings(const char* category /* = nullptr */)
23002300
dlg->setModal(false);
23012301
dlg->show();
23022302
}
2303+
else
2304+
{
2305+
dlg->raise();
2306+
}
23032307

23042308
if (category)
23052309
dlg->setCategory(category);
@@ -2322,6 +2326,10 @@ void MainWindow::doControllerSettings(
23222326
dlg->setModal(false);
23232327
dlg->show();
23242328
}
2329+
else
2330+
{
2331+
dlg->raise();
2332+
}
23252333

23262334
if (category != ControllerSettingsDialog::Category::Count)
23272335
dlg->setCategory(category);

0 commit comments

Comments
 (0)